Changeset 4cfe69a in buchla-68k


Ignore:
Timestamp:
07/16/2017 03:10:36 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
62340ef
Parents:
5117699
Message:

Use .ds and .dc pseudo-ops. Generate debug symbols.

Files:
14 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r5117699 r4cfe69a  
    1111# the hand-written assembly language code
    1212
    13 FLAGS :=                -Os -m68000 -Wall -Wextra
     13FLAGS :=                -Os -m68000 -Wall -Wextra -gdwarf-4
    1414
    1515FLAGS_COM :=    $(FLAGS) -mshort -std=c99 -fleading-underscore -ffreestanding \
  • iolib/traps.s

    r5117699 r4cfe69a  
    5252                .even
    5353
    54 tr1sav:         ds.l    1               | Return address for trap1
    55 tr13sav:        ds.l    1               | Return address for trap13
    56 tr14sav:        ds.l    1               | Return address for trap14
     54tr1sav:         .ds.l   1               | Return address for trap1
     55tr13sav:        .ds.l   1               | Return address for trap13
     56tr14sav:        .ds.l   1               | Return address for trap14
    5757
    58 tr1rmp:         ds.l    1               | Save area for tr1sav for ROMP
    59 tr13rmp:        ds.l    1               | Save area for tr13sav for ROMP
    60 tr14rmp:        ds.l    1               | Save area for tr14sav for ROMP
     58tr1rmp:         .ds.l   1               | Save area for tr1sav for ROMP
     59tr13rmp:        .ds.l   1               | Save area for tr13sav for ROMP
     60tr14rmp:        .ds.l   1               | Save area for tr14sav for ROMP
    6161
    6262                .end
  • lib700/finalone.s

    r5117699 r4cfe69a  
    2424                .even
    2525
    26 The_Fini:       dc.w    0xFFFF          | last thing in the 'data' segment
     26The_Fini:       .dc.w   0xFFFF          | last thing in the 'data' segment
    2727
    2828| ------------------------------------------------------------------------------
  • lib700/uldiv.s

    r5117699 r4cfe69a  
    9292                .even
    9393
    94 _uldivr:        ds.l    1
     94_uldivr:        .ds.l   1
    9595
    9696                .end
  • prolog/fsmain.s

    r5117699 r4cfe69a  
    118118                .even
    119119
    120 __pmesg:        ds.l    1       | panic() message string address
    121 __heap:         ds.l    1       | Heap start  (initial break)
    122 __break:        ds.l    1       | Current break location
    123 _errno:         ds.w    1       | System error number
     120__pmesg:        .ds.l   1       | panic() message string address
     121__heap:         .ds.l   1       | Heap start  (initial break)
     122__break:        .ds.l   1       | Current break location
     123_errno:         .ds.w   1       | System error number
    124124
    125125        .end
  • ram/fpuint.s

    r5117699 r4cfe69a  
    933933| actab -- action code dispatch table
    934934| -----    --------------------------
    935 actab:          dc.l    act0    | 0 - AC_NULL:  no action
    936                 dc.l    act1    | 1 - AC_SUST:  sustain
    937                 dc.l    act2    | 2 - AC_ENBL:  enable
    938                 dc.l    act3    | 3 - AC_JUMP:  unconditional jump
    939                 dc.l    act4    | 4 - AC_LOOP:  jump n times      (loop)
    940                 dc.l    act5    | 5 - AC_KYUP:  jump if key up    (enable jump)
    941                 dc.l    act6    | 6 - AC_KYDN:  jump if key down  (sustain jump)
    942                 dc.l    act7    | 7 - AC_HERE:  here on key up
     935actab:          .dc.l   act0    | 0 - AC_NULL:  no action
     936                .dc.l   act1    | 1 - AC_SUST:  sustain
     937                .dc.l   act2    | 2 - AC_ENBL:  enable
     938                .dc.l   act3    | 3 - AC_JUMP:  unconditional jump
     939                .dc.l   act4    | 4 - AC_LOOP:  jump n times      (loop)
     940                .dc.l   act5    | 5 - AC_KYUP:  jump if key up    (enable jump)
     941                .dc.l   act6    | 6 - AC_KYDN:  jump if key down  (sustain jump)
     942                .dc.l   act7    | 7 - AC_HERE:  here on key up
    943943
    944944| fprescon -- FPU reset constant table
    945945| --------    ------------------------
    946 fprescon:       dc.w    0x0000  | frq 1           0.00
    947                 dc.w    0x8300  | level         -10.00
    948                 dc.w    0x0000  | frq 2           0.00
    949                 dc.w    0x0000  | locn            0.00
    950                 dc.w    0x0000  | frq 3           0.00
    951                 dc.w    0x0000  | reson           0.00
    952                 dc.w    0x0000  | frq 4           0.00
    953                 dc.w    0x7D00  | dyn           +10.00
    954                 dc.w    0x0000  | ind 1           0.00
    955                 dc.w    0x3E80  | filt           +5.00
    956                 dc.w    0x0000  | ind 2           0.00
    957                 dc.w    0x0000  | ind 3           0.00
    958                 dc.w    0x0000  | ind 4           0.00
    959                 dc.w    0x0000  | ind 5           0.00
    960                 dc.w    0x0000  | ind 6           0.00
     946fprescon:       .dc.w   0x0000  | frq 1           0.00
     947                .dc.w   0x8300  | level         -10.00
     948                .dc.w   0x0000  | frq 2           0.00
     949                .dc.w   0x0000  | locn            0.00
     950                .dc.w   0x0000  | frq 3           0.00
     951                .dc.w   0x0000  | reson           0.00
     952                .dc.w   0x0000  | frq 4           0.00
     953                .dc.w   0x7D00  | dyn           +10.00
     954                .dc.w   0x0000  | ind 1           0.00
     955                .dc.w   0x3E80  | filt           +5.00
     956                .dc.w   0x0000  | ind 2           0.00
     957                .dc.w   0x0000  | ind 3           0.00
     958                .dc.w   0x0000  | ind 4           0.00
     959                .dc.w   0x0000  | ind 5           0.00
     960                .dc.w   0x0000  | ind 6           0.00
    961961
    962962| ------------------------------------------------------------------------------
     
    964964| ------------------------------------------------------------------------------
    965965
    966 _fp_resv:       ds.w    12              | fpu spare function reset values
    967 _fpuifnc:       ds.w    1               | interrupting function number from FPU
     966_fp_resv:       .ds.w   12              | fpu spare function reset values
     967_fpuifnc:       .ds.w   1               | interrupting function number from FPU
    968968
    969969                .end
  • ram/procpfl.s

    r5117699 r4cfe69a  
    731731| actab -- action code dispatch table
    732732| -----    --------------------------
    733 actab:          dc.l    act0    | 0 - AC_NULL:  no action
    734                 dc.l    act1    | 1 - AC_SUST:  sustain
    735                 dc.l    act2    | 2 - AC_ENBL:  enable
    736                 dc.l    act3    | 3 - AC_JUMP:  unconditional jump
    737                 dc.l    act4    | 4 - AC_LOOP:  jump n times      (loop)
    738                 dc.l    act5    | 5 - AC_KYUP:  jump if key up    (enable jump)
    739                 dc.l    act6    | 6 - AC_KYDN:  jump if key down  (sustain jump)
    740                 dc.l    act7    | 7 - AC_HERE:  here on key up
     733actab:          .dc.l   act0    | 0 - AC_NULL:  no action
     734                .dc.l   act1    | 1 - AC_SUST:  sustain
     735                .dc.l   act2    | 2 - AC_ENBL:  enable
     736                .dc.l   act3    | 3 - AC_JUMP:  unconditional jump
     737                .dc.l   act4    | 4 - AC_LOOP:  jump n times      (loop)
     738                .dc.l   act5    | 5 - AC_KYUP:  jump if key up    (enable jump)
     739                .dc.l   act6    | 6 - AC_KYDN:  jump if key down  (sustain jump)
     740                .dc.l   act7    | 7 - AC_HERE:  here on key up
    741741
    742742| ------------------------------------------------------------------------------
     
    746746| ----------------- local variables --------------------------------------------
    747747
    748 _curpf_f:       ds.w    1       | interrupting voice & parameter from FPU
     748_curpf_f:       .ds.w   1       | interrupting voice & parameter from FPU
    749749
    750750| ----------------- debug variables --------------------------------------------
    751751
    752 _curpf_t:       ds.w    1       | current trigger
    753 
    754 _curpf_l:       ds.l    1       | current pflist entry
     752_curpf_t:       .ds.w   1       | current trigger
     753
     754_curpf_l:       .ds.l   1       | current pflist entry
    755755
    756756| ------------------------------------------------------------------------------
  • ram/sedisp.s

    r5117699 r4cfe69a  
    11871187| sddtab -- score display dispatch table -- MUST match score.h definitions
    11881188| ------    ----------------------------    ------------------------------
    1189 sddtab:         dc.l    dsexit          | 0     null
    1190                 dc.l    dsexit          | 1     score begin
    1191                 dc.l    dssbgn          | 2     section begin
    1192                 dc.l    dssend          | 3     section end
    1193                 dc.l    dsinst          | 4     instrument change
    1194                 dc.l    dsnbx           | 5     note begin
    1195                 dc.l    dsnex           | 6     note end
    1196                 dc.l    dsstop          | 7     stop
    1197                 dc.l    dsintp          | 8     interpolate
    1198                 dc.l    dstmpo          | 9     tempo
    1199                 dc.l    dstune          | 10    tuning
    1200                 dc.l    dsgrp           | 11    group status
    1201                 dc.l    dslocn          | 12    location
    1202                 dc.l    dsdyn           | 13    dynamics
    1203                 dc.l    dsanvl          | 14    analog value
    1204                 dc.l    dsanrs          | 15    analog resolution
    1205                 dc.l    dsasgn          | 16    I/O assign
    1206                 dc.l    dstrns          | 17    transposition
    1207                 dc.l    dsexit          | 18    repeat
    1208                 dc.l    dspnch          | 19    punch in/out
    1209                 dc.l    dsexit          | 20    polyphonic pressure
    1210                 dc.l    dsexit          | 21    score end
    1211                 dc.l    dsexit          | 22    channel pressure
    1212                 dc.l    dsbar           | 23    bar marker
    1213                 dc.l    dsnext          | 24    next score
     1189sddtab:         .dc.l   dsexit          | 0     null
     1190                .dc.l   dsexit          | 1     score begin
     1191                .dc.l   dssbgn          | 2     section begin
     1192                .dc.l   dssend          | 3     section end
     1193                .dc.l   dsinst          | 4     instrument change
     1194                .dc.l   dsnbx           | 5     note begin
     1195                .dc.l   dsnex           | 6     note end
     1196                .dc.l   dsstop          | 7     stop
     1197                .dc.l   dsintp          | 8     interpolate
     1198                .dc.l   dstmpo          | 9     tempo
     1199                .dc.l   dstune          | 10    tuning
     1200                .dc.l   dsgrp           | 11    group status
     1201                .dc.l   dslocn          | 12    location
     1202                .dc.l   dsdyn           | 13    dynamics
     1203                .dc.l   dsanvl          | 14    analog value
     1204                .dc.l   dsanrs          | 15    analog resolution
     1205                .dc.l   dsasgn          | 16    I/O assign
     1206                .dc.l   dstrns          | 17    transposition
     1207                .dc.l   dsexit          | 18    repeat
     1208                .dc.l   dspnch          | 19    punch in/out
     1209                .dc.l   dsexit          | 20    polyphonic pressure
     1210                .dc.l   dsexit          | 21    score end
     1211                .dc.l   dsexit          | 22    channel pressure
     1212                .dc.l   dsbar           | 23    bar marker
     1213                .dc.l   dsnext          | 24    next score
    12141214
    12151215| ==============================================================================
     
    12191219| globals:
    12201220| --------
    1221 _ac_code:       ds.b    1               | accidental code
     1221_ac_code:       .ds.b   1               | accidental code
    12221222
    12231223| locals:
    12241224| -------
    1225 numstr:         ds.b    65              | video display update work area
     1225numstr:         .ds.b   65              | video display update work area
    12261226
    12271227| ------------------------------------------------------------------------------
  • ram/seexec.s

    r5117699 r4cfe69a  
    486486| sextab -- score execution dispatch table -- MUST match score.h definitions
    487487| ------    ----------------------------------------------------------------
    488 sextab:         dc.l    exexit          | 0     null
    489                 dc.l    exexit          | 1     score begin
    490                 dc.l    exsbgn          | 2     section begin
    491                 dc.l    exexit          | 3     section end
    492                 dc.l    exinst          | 4     instrument change
    493                 dc.l    exnbeg          | 5     note begin
    494                 dc.l    exnend          | 6     note end
    495                 dc.l    exstop          | 7     stop
    496                 dc.l    exintp          | 8     interpolate
    497                 dc.l    extmpo          | 9     tempo
    498                 dc.l    extune          | 10    tuning
    499                 dc.l    exexit          | 11    group status
    500                 dc.l    exlocn          | 12    location
    501                 dc.l    exdyn           | 13    dynamics
    502                 dc.l    exanvl          | 14    analog value
    503                 dc.l    exanrs          | 15    analog resolution
    504                 dc.l    exasgn          | 16    I/O assign
    505                 dc.l    extrns          | 17    transposition
    506                 dc.l    exexit          | 18    repeat
    507                 dc.l    expnch          | 19    punch in/out
    508                 dc.l    exexit          | 20    -unused- (polyphonic pressure)
    509                 dc.l    exexit          | 21    score end
    510                 dc.l    exexit          | 22    -unused- (channel pressure)
    511                 dc.l    exexit          | 23    bar marker
    512                 dc.l    exnext          | 24    next score
     488sextab:         .dc.l   exexit          | 0     null
     489                .dc.l   exexit          | 1     score begin
     490                .dc.l   exsbgn          | 2     section begin
     491                .dc.l   exexit          | 3     section end
     492                .dc.l   exinst          | 4     instrument change
     493                .dc.l   exnbeg          | 5     note begin
     494                .dc.l   exnend          | 6     note end
     495                .dc.l   exstop          | 7     stop
     496                .dc.l   exintp          | 8     interpolate
     497                .dc.l   extmpo          | 9     tempo
     498                .dc.l   extune          | 10    tuning
     499                .dc.l   exexit          | 11    group status
     500                .dc.l   exlocn          | 12    location
     501                .dc.l   exdyn           | 13    dynamics
     502                .dc.l   exanvl          | 14    analog value
     503                .dc.l   exanrs          | 15    analog resolution
     504                .dc.l   exasgn          | 16    I/O assign
     505                .dc.l   extrns          | 17    transposition
     506                .dc.l   exexit          | 18    repeat
     507                .dc.l   expnch          | 19    punch in/out
     508                .dc.l   exexit          | 20    -unused- (polyphonic pressure)
     509                .dc.l   exexit          | 21    score end
     510                .dc.l   exexit          | 22    -unused- (channel pressure)
     511                .dc.l   exexit          | 23    bar marker
     512                .dc.l   exnext          | 24    next score
    513513
    514514                .bss
     
    518518| globals:
    519519| --------
    520 _xevent:        ds.l    1               | next event pointer
     520_xevent:        .ds.l   1               | next event pointer
    521521
    522522                .end
  • ram/timeint.s

    r5117699 r4cfe69a  
    367367| we define them here and ignore the ones in the bios.
    368368
    369 tdiv1:          ds.w    1               | Timer divider 1  (divides HZ_1K)
    370 tdiv2:          ds.w    1               | Timer divider 2  (divides HZ_200)
    371 
    372 | ------------------------------------------------------------------------------
    373 
    374 _timers:        ds.w    NTIMERS         | Timer array -- short timers[NTIMERS];
    375 
    376 _vi_clk:        ds.w    1               | VSDD scroll delay timer
    377 _vi_tag:        ds.w    1               | VSDD VI 'needs service' tag
    378 
    379 _S1IoRec:       ds.l    1               | address of RS232 channel 1 IoRec
    380 _S2IoRec:       ds.l    1               | address of RS232 channel 2 IoRec
    381 _M1IoRec:       ds.l    1               | address of MIDI channel 1 IoRec
    382 _M2IoRec:       ds.l    1               | address of MIDI channel 2 IoRec
     369tdiv1:          .ds.w   1               | Timer divider 1  (divides HZ_1K)
     370tdiv2:          .ds.w   1               | Timer divider 2  (divides HZ_200)
     371
     372| ------------------------------------------------------------------------------
     373
     374_timers:        .ds.w   NTIMERS         | Timer array -- short timers[NTIMERS];
     375
     376_vi_clk:        .ds.w   1               | VSDD scroll delay timer
     377_vi_tag:        .ds.w   1               | VSDD VI 'needs service' tag
     378
     379_S1IoRec:       .ds.l   1               | address of RS232 channel 1 IoRec
     380_S2IoRec:       .ds.l   1               | address of RS232 channel 2 IoRec
     381_M1IoRec:       .ds.l   1               | address of MIDI channel 1 IoRec
     382_M2IoRec:       .ds.l   1               | address of MIDI channel 2 IoRec
    383383| ==============================================================================
    384384
  • rom/bios.s

    r5117699 r4cfe69a  
    431431begin:          bra.s   biosinit                | Jump to bios init
    432432
    433 vermsg:         dc.b    VM1,VM2                 | Version number
    434 
    435                 dc.l    biosinit                | Reset address (bios init)
    436 
    437 created:        dc.l    VDATE                   | Creation date
     433vermsg:         .dc.b   VM1,VM2                 | Version number
     434
     435                .dc.l   biosinit                | Reset address (bios init)
     436
     437created:        .dc.l   VDATE                   | Creation date
    438438
    439439copyrite:       .ascii  "{Copyright 1988 by "   | Copyright message
    440440                .asciz  "D.N. Lynx Crowe}"
    441441
    442                 dc.l    0                       | Some padding
     442                .dc.l   0                       | Some padding
    443443
    444444                .page
     
    33233323| t13tab -- Trap-13 pointer table -- Primary BIOS functions
    33243324| ------    -----------------------------------------------
    3325 t13tab:         dc.w    12                      | Number of Trap-13 routines
    3326 
    3327                 dc.l    nullrts                 | 0 - (getmpb)
    3328                 dc.l    bconstat                | 1 - bconstat
    3329                 dc.l    bconin                  | 2 - bconin
    3330                 dc.l    bconout                 | 3 - bconout
    3331                 dc.l    rwabs                   | 4 - rwabs
    3332                 dc.l    setexec                 | 5 - setexec
    3333                 dc.l    nullrts                 | 6 - (tickcal)
    3334                 dc.l    getbpb                  | 7 - getbpb
    3335                 dc.l    bcostat                 | 8 - bcostat
    3336                 dc.l    mediach                 | 9 - mediach
    3337                 dc.l    drvmap                  | 10 - drvmap
    3338                 dc.l    nullrts                 | 11 - (shift)
     3325t13tab:         .dc.w   12                      | Number of Trap-13 routines
     3326
     3327                .dc.l   nullrts                 | 0 - (getmpb)
     3328                .dc.l   bconstat                | 1 - bconstat
     3329                .dc.l   bconin                  | 2 - bconin
     3330                .dc.l   bconout                 | 3 - bconout
     3331                .dc.l   rwabs                   | 4 - rwabs
     3332                .dc.l   setexec                 | 5 - setexec
     3333                .dc.l   nullrts                 | 6 - (tickcal)
     3334                .dc.l   getbpb                  | 7 - getbpb
     3335                .dc.l   bcostat                 | 8 - bcostat
     3336                .dc.l   mediach                 | 9 - mediach
     3337                .dc.l   drvmap                  | 10 - drvmap
     3338                .dc.l   nullrts                 | 11 - (shift)
    33393339
    33403340                .page
     
    33423342| t14tab -- Trap-14 pointer table -- Extended BIOS functions (Buchla 700 only)
    33433343| ------    ------------------------------------------------------------------
    3344 t14tab:         dc.w    10                      | Number of trap14 routines
    3345 
    3346                 dc.l    piorec                  | 0 - Get iorec address
    3347                 dc.l    setport                 | 1 - Set ACIA parameters
    3348                 dc.l    floprd                  | 2 - Read floppy
    3349                 dc.l    flopwr                  | 3 - Write floppy
    3350                 dc.l    flopfmt                 | 4 - Format floppy
    3351                 dc.l    flopver                 | 5 - Verify floppy
    3352                 dc.l    protobt                 | 6 - Create prototype boot sec.
    3353                 dc.l    rand                    | 7 - Generate random number
    3354                 dc.l    api_get                 | 8 - Get analog input
    3355                 dc.l    api_zap                 | 9 - Clear analog FIFO
     3344t14tab:         .dc.w   10                      | Number of trap14 routines
     3345
     3346                .dc.l   piorec                  | 0 - Get iorec address
     3347                .dc.l   setport                 | 1 - Set ACIA parameters
     3348                .dc.l   floprd                  | 2 - Read floppy
     3349                .dc.l   flopwr                  | 3 - Write floppy
     3350                .dc.l   flopfmt                 | 4 - Format floppy
     3351                .dc.l   flopver                 | 5 - Verify floppy
     3352                .dc.l   protobt                 | 6 - Create prototype boot sec.
     3353                .dc.l   rand                    | 7 - Generate random number
     3354                .dc.l   api_get                 | 8 - Get analog input
     3355                .dc.l   api_zap                 | 9 - Clear analog FIFO
    33563356
    33573357                .endc
     
    33653365| t13tab -- Trap-13 pointer table -- Primary BIOS functions
    33663366| ------    -----------------------------------------------
    3367 t13tab:         dc.w    12                      | Number of Trap-13 routines
    3368 
    3369                 dc.l    nullrts                 | 0 - (getmpb)
    3370                 dc.l    bconstat                | 1 - bconstat
    3371                 dc.l    bconin                  | 2 - bconin
    3372                 dc.l    bconout                 | 3 - bconout
    3373                 dc.l    nullrts                 | 4 - (rwabs)
    3374                 dc.l    setexec                 | 5 - setexec
    3375                 dc.l    nullrts                 | 6 - (tickcal)
    3376                 dc.l    nullrts                 | 7 - (getbpb)
    3377                 dc.l    bcostat                 | 8 - bcostat
    3378                 dc.l    nullrts                 | 9 - (mediach)
    3379                 dc.l    nullrts                 | 10 - (drvmap)
    3380                 dc.l    nullrts                 | 11 - (shift)
     3367t13tab:         .dc.w   12                      | Number of Trap-13 routines
     3368
     3369                .dc.l   nullrts                 | 0 - (getmpb)
     3370                .dc.l   bconstat                | 1 - bconstat
     3371                .dc.l   bconin                  | 2 - bconin
     3372                .dc.l   bconout                 | 3 - bconout
     3373                .dc.l   nullrts                 | 4 - (rwabs)
     3374                .dc.l   setexec                 | 5 - setexec
     3375                .dc.l   nullrts                 | 6 - (tickcal)
     3376                .dc.l   nullrts                 | 7 - (getbpb)
     3377                .dc.l   bcostat                 | 8 - bcostat
     3378                .dc.l   nullrts                 | 9 - (mediach)
     3379                .dc.l   nullrts                 | 10 - (drvmap)
     3380                .dc.l   nullrts                 | 11 - (shift)
    33813381
    33823382                .page
     
    33843384| t14tab -- Trap-14 pointer table -- Extended BIOS functions (Buchla 700 only)
    33853385| ------    ------------------------------------------------------------------
    3386 t14tab:         dc.w    10                      | Number of trap14 routines
    3387 
    3388                 dc.l    piorec                  | 0 - Get iorec address
    3389                 dc.l    setport                 | 1 - Set ACIA parameters
    3390                 dc.l    nullrts                 | 2 - (Read floppy)
    3391                 dc.l    nullrts                 | 3 - (Write floppy)
    3392                 dc.l    nullrts                 | 4 - (Format floppy)
    3393                 dc.l    nullrts                 | 5 - (Verify floppy)
    3394                 dc.l    nullrts                 | 6 - (Create prototype boot sec.)
    3395                 dc.l    nullrts                 | 7 - (Generate random number)
    3396                 dc.l    nullrts                 | 8 - (Get analog input)
    3397                 dc.l    nullrts                 | 9 - (Clear analog FIFO)
     3386t14tab:         .dc.w   10                      | Number of trap14 routines
     3387
     3388                .dc.l   piorec                  | 0 - Get iorec address
     3389                .dc.l   setport                 | 1 - Set ACIA parameters
     3390                .dc.l   nullrts                 | 2 - (Read floppy)
     3391                .dc.l   nullrts                 | 3 - (Write floppy)
     3392                .dc.l   nullrts                 | 4 - (Format floppy)
     3393                .dc.l   nullrts                 | 5 - (Verify floppy)
     3394                .dc.l   nullrts                 | 6 - (Create prototype boot sec.)
     3395                .dc.l   nullrts                 | 7 - (Generate random number)
     3396                .dc.l   nullrts                 | 8 - (Get analog input)
     3397                .dc.l   nullrts                 | 9 - (Clear analog FIFO)
    33983398
    33993399                .endc
     
    34033403| cdt01 -- Character device dispatch table #1 -- input status
    34043404| -----    --------------------------------------------------
    3405 cdt01:          dc.l    sr1ist                  | 0 - PRT -- Printer
    3406                 dc.l    sr2ist                  | 1 - AUX -- Serial-2
    3407                 dc.l    sr2ist                  | 2 - CON -- Console
     3405cdt01:          .dc.l   sr1ist                  | 0 - PRT -- Printer
     3406                .dc.l   sr2ist                  | 1 - AUX -- Serial-2
     3407                .dc.l   sr2ist                  | 2 - CON -- Console
    34083408
    34093409                .ifne   BUCHLA
    34103410
    3411                 dc.l    mc1ist                  | 3 - MC1 -- MIDI-1
    3412                 dc.l    mc2ist                  | 4 - MC2 -- MIDI-2
     3411                .dc.l   mc1ist                  | 3 - MC1 -- MIDI-1
     3412                .dc.l   mc2ist                  | 4 - MC2 -- MIDI-2
    34133413
    34143414                .endc
     
    34163416| cdt02 -- Character device dispatch table #2 -- input
    34173417| -----    -------------------------------------------
    3418 cdt02:          dc.l    sr1inp                  | 0 - PRT -- Printer
    3419                 dc.l    sr2inp                  | 1 - AUX -- Serial-2
    3420                 dc.l    sr2inp                  | 2 - CON -- Console
     3418cdt02:          .dc.l   sr1inp                  | 0 - PRT -- Printer
     3419                .dc.l   sr2inp                  | 1 - AUX -- Serial-2
     3420                .dc.l   sr2inp                  | 2 - CON -- Console
    34213421
    34223422                .ifne   BUCHLA
    34233423
    3424                 dc.l    mc1inp                  | 3 - MC1 -- MIDI-1
    3425                 dc.l    mc2inp                  | 4 - MC2 -- MIDI-2
     3424                .dc.l   mc1inp                  | 3 - MC1 -- MIDI-1
     3425                .dc.l   mc2inp                  | 4 - MC2 -- MIDI-2
    34263426
    34273427                .endc
     
    34293429| cdt03 -- Character device dispatch table #3 -- output
    34303430| -----    --------------------------------------------
    3431 cdt03:          dc.l    sr1out                  | 0 - PRT -- Printer
    3432                 dc.l    sr2out                  | 1 - AUX -- Serial-2
    3433                 dc.l    sr2out                  | 2 - CON -- Console
     3431cdt03:          .dc.l   sr1out                  | 0 - PRT -- Printer
     3432                .dc.l   sr2out                  | 1 - AUX -- Serial-2
     3433                .dc.l   sr2out                  | 2 - CON -- Console
    34343434                .ifne   BUCHLA
    34353435
    3436                 dc.l    mc1out                  | 3 - MC1 -- MIDI-1
    3437                 dc.l    mc2out                  | 4 - MC2 -- MIDI-2
     3436                .dc.l   mc1out                  | 3 - MC1 -- MIDI-1
     3437                .dc.l   mc2out                  | 4 - MC2 -- MIDI-2
    34383438
    34393439                .endc
     
    34413441| cdt04 -- Character device dispatch table #4 -- output status
    34423442| -----    ---------------------------------------------------
    3443 cdt04:          dc.l    sr1ost                  | 0 - PRT -- Printer
    3444                 dc.l    sr2ost                  | 1 - AUX -- Serial-2
    3445                 dc.l    sr2ost                  | 2 - CON -- Console
     3443cdt04:          .dc.l   sr1ost                  | 0 - PRT -- Printer
     3444                .dc.l   sr2ost                  | 1 - AUX -- Serial-2
     3445                .dc.l   sr2ost                  | 2 - CON -- Console
    34463446                .ifne   BUCHLA
    34473447
    3448                 dc.l    mc1ost                  | 3 - MC1 -- MIDI-1
    3449                 dc.l    mc2ost                  | 4 - MC2 -- MIDI-2
     3448                .dc.l   mc1ost                  | 3 - MC1 -- MIDI-1
     3449                .dc.l   mc2ost                  | 4 - MC2 -- MIDI-2
    34503450
    34513451                .endc
     
    34573457| Serial-1:
    34583458| ---------
    3459 sr1dflt:        dc.l    sr1ibuf
    3460                 dc.w    SR1IBS
    3461                 dc.w    0,0
    3462                 dc.w    SR1IBS/4
    3463                 dc.w    SR1IBS-(SR1IBS/4)
    3464                 dc.l    sr1obuf
    3465                 dc.w    SR1OBS
    3466                 dc.w    0,0
    3467                 dc.w    SR1OBS/4
    3468                 dc.w    SR1OBS-(SR1OBS/4)
    3469                 dc.b    SR1CFR0,SR1CFR1
    3470                 dc.b    0,0
    3471                 dc.b    SR1DISC,0
    3472                 dc.b    0,0
    3473                 dc.w    0,0
     3459sr1dflt:        .dc.l   sr1ibuf
     3460                .dc.w   SR1IBS
     3461                .dc.w   0,0
     3462                .dc.w   SR1IBS/4
     3463                .dc.w   SR1IBS-(SR1IBS/4)
     3464                .dc.l   sr1obuf
     3465                .dc.w   SR1OBS
     3466                .dc.w   0,0
     3467                .dc.w   SR1OBS/4
     3468                .dc.w   SR1OBS-(SR1OBS/4)
     3469                .dc.b   SR1CFR0,SR1CFR1
     3470                .dc.b   0,0
     3471                .dc.b   SR1DISC,0
     3472                .dc.b   0,0
     3473                .dc.w   0,0
    34743474
    34753475| Serial-2:
    34763476| ---------
    3477 sr2dflt:        dc.l    sr2ibuf
    3478                 dc.w    SR2IBS
    3479                 dc.w    0,0
    3480                 dc.w    SR2IBS/4
    3481                 dc.w    SR2IBS-(SR2IBS/4)
    3482                 dc.l    sr2obuf
    3483                 dc.w    SR2OBS
    3484                 dc.w    0,0
    3485                 dc.w    SR2OBS/4
    3486                 dc.w    SR2OBS-(SR2OBS/4)
    3487                 dc.b    SR2CFR0,SR2CFR1
    3488                 dc.b    0,0
    3489                 dc.b    SR2DISC,0
    3490                 dc.b    0,0
    3491                 dc.w    0,0
     3477sr2dflt:        .dc.l   sr2ibuf
     3478                .dc.w   SR2IBS
     3479                .dc.w   0,0
     3480                .dc.w   SR2IBS/4
     3481                .dc.w   SR2IBS-(SR2IBS/4)
     3482                .dc.l   sr2obuf
     3483                .dc.w   SR2OBS
     3484                .dc.w   0,0
     3485                .dc.w   SR2OBS/4
     3486                .dc.w   SR2OBS-(SR2OBS/4)
     3487                .dc.b   SR2CFR0,SR2CFR1
     3488                .dc.b   0,0
     3489                .dc.b   SR2DISC,0
     3490                .dc.b   0,0
     3491                .dc.w   0,0
    34923492
    34933493                .page
     
    34973497| MIDI-1:
    34983498| -------
    3499 mc1dflt:        dc.l    mc1ibuf
    3500                 dc.w    MC1IBS
    3501                 dc.w    0,0
    3502                 dc.w    MC1IBS/4
    3503                 dc.w    MC1IBS-(MC1IBS/4)
    3504                 dc.l    mc1obuf
    3505                 dc.w    MC1OBS
    3506                 dc.w    0,0
    3507                 dc.w    MC1OBS/4
    3508                 dc.w    MC1OBS-(MC1OBS/4)
    3509                 dc.b    MC1CFR0,MC1CFR1
    3510                 dc.b    0,0
    3511                 dc.b    MC1DISC,0
    3512                 dc.b    0,0
    3513                 dc.w    0,0
     3499mc1dflt:        .dc.l   mc1ibuf
     3500                .dc.w   MC1IBS
     3501                .dc.w   0,0
     3502                .dc.w   MC1IBS/4
     3503                .dc.w   MC1IBS-(MC1IBS/4)
     3504                .dc.l   mc1obuf
     3505                .dc.w   MC1OBS
     3506                .dc.w   0,0
     3507                .dc.w   MC1OBS/4
     3508                .dc.w   MC1OBS-(MC1OBS/4)
     3509                .dc.b   MC1CFR0,MC1CFR1
     3510                .dc.b   0,0
     3511                .dc.b   MC1DISC,0
     3512                .dc.b   0,0
     3513                .dc.w   0,0
    35143514
    35153515| MIDI-2:
    35163516| -------
    3517 mc2dflt:        dc.l    mc2ibuf
    3518                 dc.w    MC2IBS
    3519                 dc.w    0,0
    3520                 dc.w    MC2IBS/4
    3521                 dc.w    MC2IBS-(MC2IBS/4)
    3522                 dc.l    mc2obuf
    3523                 dc.w    MC2OBS
    3524                 dc.w    0,0
    3525                 dc.w    MC2OBS/4
    3526                 dc.w    MC2OBS-(MC2OBS/4)
    3527                 dc.b    MC2CFR0,MC2CFR1
    3528                 dc.b    0,0
    3529                 dc.b    MC2DISC,0
    3530                 dc.b    0,0
    3531                 dc.w    0,0
     3517mc2dflt:        .dc.l   mc2ibuf
     3518                .dc.w   MC2IBS
     3519                .dc.w   0,0
     3520                .dc.w   MC2IBS/4
     3521                .dc.w   MC2IBS-(MC2IBS/4)
     3522                .dc.l   mc2obuf
     3523                .dc.w   MC2OBS
     3524                .dc.w   0,0
     3525                .dc.w   MC2OBS/4
     3526                .dc.w   MC2OBS-(MC2OBS/4)
     3527                .dc.b   MC2CFR0,MC2CFR1
     3528                .dc.b   0,0
     3529                .dc.b   MC2DISC,0
     3530                .dc.b   0,0
     3531                .dc.w   0,0
    35323532
    35333533                .endc
     
    35373537| brtable -- Baud rate setup table
    35383538| -------    ---------------------
    3539 brtable:        dc.b    BR_19K2         | 0 - 19200 baud
    3540                 dc.b    BR_9600         | 1 -  9600 baud
    3541                 dc.b    BR_4800         | 2 -  4800 baud
    3542                 dc.b    BR_3600         | 3 -  3600 baud
    3543                 dc.b    BR_2400         | 4 -  2400 baud
    3544                 dc.b    BR_7200         | 5 -  7200 baud  (2000 on Atari)
    3545                 dc.b    BR_1800         | 6 -  1800 baud
    3546                 dc.b    BR_1200         | 7 -  1200 baud
    3547                 dc.b    BR_600          | 8 -   600 baud
    3548                 dc.b    BR_300          | 9 -   300 baud
     3539brtable:        .dc.b   BR_19K2         | 0 - 19200 baud
     3540                .dc.b   BR_9600         | 1 -  9600 baud
     3541                .dc.b   BR_4800         | 2 -  4800 baud
     3542                .dc.b   BR_3600         | 3 -  3600 baud
     3543                .dc.b   BR_2400         | 4 -  2400 baud
     3544                .dc.b   BR_7200         | 5 -  7200 baud  (2000 on Atari)
     3545                .dc.b   BR_1800         | 6 -  1800 baud
     3546                .dc.b   BR_1200         | 7 -  1200 baud
     3547                .dc.b   BR_600          | 8 -   600 baud
     3548                .dc.b   BR_300          | 9 -   300 baud
    35493549
    35503550| iortab -- iorec pointer table
    35513551| ------    -------------------
    3552 iortab:         dc.l    sr1iorec        | 0 - PRT Serial-1 Printer
    3553                 dc.l    sr2iorec        | 1 - AUX Serial-2 Host
    3554                 dc.l    sr2iorec        | 2 - CON Serial-2 Console
     3552iortab:         .dc.l   sr1iorec        | 0 - PRT Serial-1 Printer
     3553                .dc.l   sr2iorec        | 1 - AUX Serial-2 Host
     3554                .dc.l   sr2iorec        | 2 - CON Serial-2 Console
    35553555
    35563556                .ifne   BUCHLA
    35573557
    3558                 dc.l    mc1iorec        | 3 - MC1 MIDI-1   MIDI port #1
    3559                 dc.l    mc2iorec        | 4 - MC2 MIDI-2   MIDI port #2
     3558                .dc.l   mc1iorec        | 3 - MC1 MIDI-1   MIDI port #1
     3559                .dc.l   mc2iorec        | 4 - MC2 MIDI-2   MIDI port #2
    35603560
    35613561                .endc
     
    35633563| aciatab -- iorec and ACIA pointer table
    35643564| -------    ----------------------------
    3565 aciatab:        dc.l    sr1iorec,SR1ACIA        | 0 - PRT Serial-1
    3566                 dc.l    sr2iorec,SR2ACIA        | 1 - AUX Serial-2
    3567                 dc.l    sr2iorec,SR2ACIA        | 2 - CON Serial-2
     3565aciatab:        .dc.l   sr1iorec,SR1ACIA        | 0 - PRT Serial-1
     3566                .dc.l   sr2iorec,SR2ACIA        | 1 - AUX Serial-2
     3567                .dc.l   sr2iorec,SR2ACIA        | 2 - CON Serial-2
    35683568
    35693569                .ifne   BUCHLA
    35703570
    3571                 dc.l    mc1iorec,MC1ACIA        | 3 - MC1 MIDI-1
    3572                 dc.l    mc2iorec,MC2ACIA        | 4 - MC2 MIDI-2
     3571                .dc.l   mc1iorec,MC1ACIA        | 3 - MC1 MIDI-1
     3572                .dc.l   mc2iorec,MC2ACIA        | 4 - MC2 MIDI-2
    35733573
    35743574                .endc
     
    35833583| 0 -- 40 tracks, single sided (180K)
    35843584
    3585 pbpbtab:        dc.b    0x00,0x02,0x01,0x01,0x00,0x02,0x40,0x00
    3586                 dc.b    0x68,0x01,0xFC,0x02,0x00,0x09,0x00,0x01
    3587                 dc.b    0x00,0x00,0x00
     3585pbpbtab:        .dc.b   0x00,0x02,0x01,0x01,0x00,0x02,0x40,0x00
     3586                .dc.b   0x68,0x01,0xFC,0x02,0x00,0x09,0x00,0x01
     3587                .dc.b   0x00,0x00,0x00
    35883588
    35893589| 1 -- 40 tracks, double sided (360K)
    35903590
    3591                 dc.b    0x00,0x02,0x02,0x01,0x00,0x02,0x70,0x00
    3592                 dc.b    0xD0,0x02,0xFD,0x02,0x00,0x09,0x00,0x02
    3593                 dc.b    0x00,0x00,0x00
     3591                .dc.b   0x00,0x02,0x02,0x01,0x00,0x02,0x70,0x00
     3592                .dc.b   0xD0,0x02,0xFD,0x02,0x00,0x09,0x00,0x02
     3593                .dc.b   0x00,0x00,0x00
    35943594
    35953595| 2 -- 80 tracks, single sided (360K)
    35963596
    3597                 dc.b    0x00,0x02,0x02,0x01,0x00,0x02,0x70,0x00
    3598                 dc.b    0xD0,0x02,0xF8,0x05,0x00,0x09,0x00,0x01
    3599                 dc.b    0x00,0x00,0x00
     3597                .dc.b   0x00,0x02,0x02,0x01,0x00,0x02,0x70,0x00
     3598                .dc.b   0xD0,0x02,0xF8,0x05,0x00,0x09,0x00,0x01
     3599                .dc.b   0x00,0x00,0x00
    36003600
    36013601| 3 -- 80 tracks, double sided (720K)
    36023602
    3603                 dc.b    0x00,0x02,0x02,0x01,0x00,0x02,0x70,0x00
    3604                 dc.b    0xA0,0x05,0xF9,0x05,0x00,0x09,0x00,0x02
    3605                 dc.b    0x00,0x00,0x00
     3603                .dc.b   0x00,0x02,0x02,0x01,0x00,0x02,0x70,0x00
     3604                .dc.b   0xA0,0x05,0xF9,0x05,0x00,0x09,0x00,0x02
     3605                .dc.b   0x00,0x00,0x00
    36063606
    36073607| VSDD initialization table
     
    36093609                .even
    36103610
    3611 vsddtab:        dc.w    0x8252          | R0    Mode word 0
    3612                 dc.w    0xE474          | R1    Mode word 1
    3613                 dc.w    0x0006          | R2    Register window base
    3614                 dc.w    0x0100          | R3    Data window base
    3615                 dc.w    0x0000          | R4    Data length mask
    3616                 dc.w    0x0000          | R5    Data segment base
    3617                 dc.w    0x0001          | R6    Priority access count
    3618                 dc.w    0x0040          | R7    ODT base
    3619                 dc.w    0x0080          | R8    AT base
    3620                 dc.w    0x0010          | R9    CLT base
    3621                 dc.w    0x0011          | R10   CG bases
    3622                 dc.w    0x0000          | R11   AT counter  (R/O)
    3623 
    3624                 dc.w    0x0C08          | R12   HC0 =  3, VC0 =   8
    3625                 dc.w    0x140A          | R13   HC1 =  5, VC1 =  10
    3626                 dc.w    0x9568          | R14   HC2 = 37, VC2 = 360
    3627                 dc.w    0xA16A          | R15   HC3 = 40, VC3 = 362
    3628 
    3629 vsddit01:       dc.w    0x8253          | R0 with UCF = 1, DEN = 0
    3630 vsddit02:       dc.w    0x825B          | R0 with UCF = 1, DEN = 1
     3611vsddtab:        .dc.w   0x8252          | R0    Mode word 0
     3612                .dc.w   0xE474          | R1    Mode word 1
     3613                .dc.w   0x0006          | R2    Register window base
     3614                .dc.w   0x0100          | R3    Data window base
     3615                .dc.w   0x0000          | R4    Data length mask
     3616                .dc.w   0x0000          | R5    Data segment base
     3617                .dc.w   0x0001          | R6    Priority access count
     3618                .dc.w   0x0040          | R7    ODT base
     3619                .dc.w   0x0080          | R8    AT base
     3620                .dc.w   0x0010          | R9    CLT base
     3621                .dc.w   0x0011          | R10   CG bases
     3622                .dc.w   0x0000          | R11   AT counter  (R/O)
     3623
     3624                .dc.w   0x0C08          | R12   HC0 =  3, VC0 =   8
     3625                .dc.w   0x140A          | R13   HC1 =  5, VC1 =  10
     3626                .dc.w   0x9568          | R14   HC2 = 37, VC2 = 360
     3627                .dc.w   0xA16A          | R15   HC3 = 40, VC3 = 362
     3628
     3629vsddit01:       .dc.w   0x8253          | R0 with UCF = 1, DEN = 0
     3630vsddit02:       .dc.w   0x825B          | R0 with UCF = 1, DEN = 1
    36313631
    36323632                .page
     
    36343634| analog processor input state table
    36353635
    3636 api_tab:        dc.b    0,1,1,1,1,1,1,1,1,1     | 0..9
    3637                 dc.b    1,1,1,1,1,1,1,1,1,1     | 10..19
    3638                 dc.b    1,1,1,1,1               | 20..24
    3639                 dc.b    3,3,3,3,3               | 25..29
    3640                 dc.b    3,3,3,3,3,3,3,3,3       | 30..38
    3641                 dc.b    5                       | 39
    3642                 dc.b    5,5,5,5,5,5,5,5,5,5     | 40..49
    3643                 dc.b    5,5,5                   | 50..52
    3644                 dc.b    3,3,3,3,3,3,3           | 53..59
    3645                 dc.b    5,5,5,5,5,5,5,5,5,5     | 60..69
    3646                 dc.b    5,5,5                   | 70..72
    3647                 dc.b    6,6,6,6,6,6,6           | 73..79
    3648                 dc.b    6,6,6                   | 80..82
     3636api_tab:        .dc.b   0,1,1,1,1,1,1,1,1,1     | 0..9
     3637                .dc.b   1,1,1,1,1,1,1,1,1,1     | 10..19
     3638                .dc.b   1,1,1,1,1               | 20..24
     3639                .dc.b   3,3,3,3,3               | 25..29
     3640                .dc.b   3,3,3,3,3,3,3,3,3       | 30..38
     3641                .dc.b   5                       | 39
     3642                .dc.b   5,5,5,5,5,5,5,5,5,5     | 40..49
     3643                .dc.b   5,5,5                   | 50..52
     3644                .dc.b   3,3,3,3,3,3,3           | 53..59
     3645                .dc.b   5,5,5,5,5,5,5,5,5,5     | 60..69
     3646                .dc.b   5,5,5                   | 70..72
     3647                .dc.b   6,6,6,6,6,6,6           | 73..79
     3648                .dc.b   6,6,6                   | 80..82
    36493649
    36503650                .even
     
    36523652| analog processor state transfer vector
    36533653
    3654 api_tv:         dc.l    api_s0,api_s1,api_s2,api_s3
    3655                 dc.l    api_s4,api_s5,api_s6
     3654api_tv:         .dc.l   api_s0,api_s1,api_s2,api_s3
     3655                .dc.l   api_s4,api_s5,api_s6
    36563656
    36573657                .endc
     
    36763676| hwdefs.s so beware of changing them.
    36773677
    3678 timevec:        ds.l    1               | System timer trap vector
    3679 critvec:        ds.l    1               | Critical error handler vector
    3680 termvec:        ds.l    1               | Process terminate hook vector
    3681 resvec3:        ds.l    1               | Reserved vector 3
    3682 resvec4:        ds.l    1               | Reserved vector 4
    3683 resvec5:        ds.l    1               | Reserved vector 5
    3684 resvec6:        ds.l    1               | Reserved vector 6
    3685 resvec7:        ds.l    1               | Reserved vector 7
    3686 
    3687 fc_sw:          ds.w    1               | Frame clock switch (<0=dn, 0=off, >0=up)
    3688 fc_val:         ds.l    1               | Frame clock value  (0..FCMAX)
    3689 
    3690 _wzcrsh:        ds.w    1               | Crash area: flag for ROMP
    3691 _crshsr:        ds.w    1               | Crash area: SR
    3692 _crshpc:        ds.l    1               | Crash area: PC
    3693 _crshsp:        ds.l    1               | Crash area: SP
    3694 _crshus:        ds.l    1               | Crash area: USP
    3695 _crshvc:        ds.l    1               | Crash area: vector # in MS byte
    3696 _crshrg:        ds.l    16              | Crash area: registers
    3697 _crshst:        ds.w    16              | Crash area: top 16 words of stack
     3678timevec:        .ds.l   1               | System timer trap vector
     3679critvec:        .ds.l   1               | Critical error handler vector
     3680termvec:        .ds.l   1               | Process terminate hook vector
     3681resvec3:        .ds.l   1               | Reserved vector 3
     3682resvec4:        .ds.l   1               | Reserved vector 4
     3683resvec5:        .ds.l   1               | Reserved vector 5
     3684resvec6:        .ds.l   1               | Reserved vector 6
     3685resvec7:        .ds.l   1               | Reserved vector 7
     3686
     3687fc_sw:          .ds.w   1               | Frame clock switch (<0=dn, 0=off, >0=up)
     3688fc_val:         .ds.l   1               | Frame clock value  (0..FCMAX)
     3689
     3690_wzcrsh:        .ds.w   1               | Crash area: flag for ROMP
     3691_crshsr:        .ds.w   1               | Crash area: SR
     3692_crshpc:        .ds.l   1               | Crash area: PC
     3693_crshsp:        .ds.l   1               | Crash area: SP
     3694_crshus:        .ds.l   1               | Crash area: USP
     3695_crshvc:        .ds.l   1               | Crash area: vector # in MS byte
     3696_crshrg:        .ds.l   16              | Crash area: registers
     3697_crshst:        .ds.w   16              | Crash area: top 16 words of stack
    36983698
    36993699| The area from biosram to SSTACK-1 is cleared on reset.
     
    37033703                .ifne   BUCHLA
    37043704
    3705 _hz_1k:         ds.l    1               | 1000 Hz clock
    3706 _hz_200:        ds.l    1               | 200 Hz clock
    3707 frclock:        ds.l    1               | 50 Hz clock
    3708 t1count:        ds.w    1               | Timer 1 count
    3709 t2count:        ds.w    1               | Timer 2 count
    3710 t3count:        ds.w    1               | Timer 3 count
    3711 
    3712 seekrate:       ds.w    1               | Seek rate
    3713 cdev:           ds.w    1               | Current drive
    3714 ctrack:         ds.w    1               | Current track
    3715 csect:          ds.w    1               | Current sector
    3716 cside:          ds.w    1               | Current side
    3717 ccount:         ds.w    1               | Current sector count
    3718 spt:            ds.w    1               | Sectors per track
    3719 interlv:        ds.w    1               | Sector interleave count
    3720 virgin:         ds.w    1               | Initial formatting data
    3721 deferr:         ds.w    1               | Default error number
    3722 curerr:         ds.w    1               | Current error number
    3723 
    3724 cdma:           ds.l    1               | Current DMA address
    3725 edma:           ds.l    1               | Ending DMA address
    3726 tmpdma:         ds.l    1               | Temporary DMA address
    3727 
    3728                 .endc
    3729 
    3730 rseed:          ds.l    1               | Random number seed
    3731 
    3732 savptr:         ds.l    1               | Pointer to register save area
    3733 
    3734 _rsflag:        ds.l    1               | Register save area overflow flag
    3735                 ds.l    18|32           | Register save area  (32 levels)
    3736 rsarea:         ds.l    1               | Dummy long word at top of save area
     3705_hz_1k:         .ds.l   1               | 1000 Hz clock
     3706_hz_200:        .ds.l   1               | 200 Hz clock
     3707frclock:        .ds.l   1               | 50 Hz clock
     3708t1count:        .ds.w   1               | Timer 1 count
     3709t2count:        .ds.w   1               | Timer 2 count
     3710t3count:        .ds.w   1               | Timer 3 count
     3711
     3712seekrate:       .ds.w   1               | Seek rate
     3713cdev:           .ds.w   1               | Current drive
     3714ctrack:         .ds.w   1               | Current track
     3715csect:          .ds.w   1               | Current sector
     3716cside:          .ds.w   1               | Current side
     3717ccount:         .ds.w   1               | Current sector count
     3718spt:            .ds.w   1               | Sectors per track
     3719interlv:        .ds.w   1               | Sector interleave count
     3720virgin:         .ds.w   1               | Initial formatting data
     3721deferr:         .ds.w   1               | Default error number
     3722curerr:         .ds.w   1               | Current error number
     3723
     3724cdma:           .ds.l   1               | Current DMA address
     3725edma:           .ds.l   1               | Ending DMA address
     3726tmpdma:         .ds.l   1               | Temporary DMA address
     3727
     3728                .endc
     3729
     3730rseed:          .ds.l   1               | Random number seed
     3731
     3732savptr:         .ds.l   1               | Pointer to register save area
     3733
     3734_rsflag:        .ds.l   1               | Register save area overflow flag
     3735                .ds.l   18|32           | Register save area  (32 levels)
     3736rsarea:         .ds.l   1               | Dummy long word at top of save area
    37373737
    37383738| ||||| end of the permanently assigned bios variables |||||
     
    37423742                .ifne   BUCHLA
    37433743
    3744 acctim:         ds.l    2               | Accumulated disk time table
    3745 maxactim:       ds.l    1               | Maximum acctim value
    3746 hdv_init:       ds.l    1               | Disk init vector
    3747 hdv_bpb:        ds.l    1               | Disk get bpb vector
    3748 hdv_rw:         ds.l    1               | Disk r/w vector
    3749 hdv_boot:       ds.l    1               | Disk boot vector
    3750 hdv_mchg:       ds.l    1               | Disk media change vector
    3751 drvbits:        ds.l    1               | Drive map bits
    3752 dskbufp:        ds.l    1               | Disk buffer pointer
    3753                 .page
    3754 nflops:         ds.w    1               | Number of drives
    3755 disknum:        ds.w    1               | Current disk number
    3756 booted:         ds.w    1               | Most recent boot device or -1
    3757 flock:          ds.w    1               | Floppy semaphore
    3758 fverify:        ds.w    1               | Floppy verify flag
    3759 
    3760 tdiv1:          ds.w    1               | Timer divider 1  (divides _hz_1k)
    3761 tdiv2:          ds.w    1               | Timer divider 2  (divides _hz_200)
    3762 
    3763 retrycnt:       ds.w    1               | Re-try count
    3764 wpstatus:       ds.w    1               | Write protect status table
    3765 wplatch:        ds.w    1               | Write protect latch table
    3766 bootdev:        ds.w    1               | Boot device number
    3767 
    3768 motoron:        ds.w    1               | Motor-on flag
    3769 deslflag:       ds.w    1               | Drive deselect flag
    3770 
    3771                 .endc
    3772 
    3773 flpsrsv:        ds.w    1               | Status register save area
    3774 flpregs:        ds.l    16              | Register save area
     3744acctim:         .ds.l   2               | Accumulated disk time table
     3745maxactim:       .ds.l   1               | Maximum acctim value
     3746hdv_init:       .ds.l   1               | Disk init vector
     3747hdv_bpb:        .ds.l   1               | Disk get bpb vector
     3748hdv_rw:         .ds.l   1               | Disk r/w vector
     3749hdv_boot:       .ds.l   1               | Disk boot vector
     3750hdv_mchg:       .ds.l   1               | Disk media change vector
     3751drvbits:        .ds.l   1               | Drive map bits
     3752dskbufp:        .ds.l   1               | Disk buffer pointer
     3753                .page
     3754nflops:         .ds.w   1               | Number of drives
     3755disknum:        .ds.w   1               | Current disk number
     3756booted:         .ds.w   1               | Most recent boot device or -1
     3757flock:          .ds.w   1               | Floppy semaphore
     3758fverify:        .ds.w   1               | Floppy verify flag
     3759
     3760tdiv1:          .ds.w   1               | Timer divider 1  (divides _hz_1k)
     3761tdiv2:          .ds.w   1               | Timer divider 2  (divides _hz_200)
     3762
     3763retrycnt:       .ds.w   1               | Re-try count
     3764wpstatus:       .ds.w   1               | Write protect status table
     3765wplatch:        .ds.w   1               | Write protect latch table
     3766bootdev:        .ds.w   1               | Boot device number
     3767
     3768motoron:        .ds.w   1               | Motor-on flag
     3769deslflag:       .ds.w   1               | Drive deselect flag
     3770
     3771                .endc
     3772
     3773flpsrsv:        .ds.w   1               | Status register save area
     3774flpregs:        .ds.l   16              | Register save area
    37753775
    37763776                .ifne   BUCHLA
    37773777
    3778 dsb0:           ds.l    1               | Drive A DSB
    3779 dsb1:           ds.l    1               | Drive B DSB
    3780 
    3781 dskmode:        ds.b    2               | Disk change mode table
    3782 dskerrs:        ds.w    2               | Disk error code table
    3783 drvbpbs:        ds.w    16|2            | Disk BPB save area
    3784 
    3785                 .endc
    3786 
    3787                 .page
    3788 
    3789 sr1iorec:       ds.b    IORECLN         | Serial-1 iorec structure
    3790 sr2iorec:       ds.b    IORECLN         | Serial-2 iorec structure
     3778dsb0:           .ds.l   1               | Drive A DSB
     3779dsb1:           .ds.l   1               | Drive B DSB
     3780
     3781dskmode:        .ds.b   2               | Disk change mode table
     3782dskerrs:        .ds.w   2               | Disk error code table
     3783drvbpbs:        .ds.w   16|2            | Disk BPB save area
     3784
     3785                .endc
     3786
     3787                .page
     3788
     3789sr1iorec:       .ds.b   IORECLN         | Serial-1 iorec structure
     3790sr2iorec:       .ds.b   IORECLN         | Serial-2 iorec structure
    37913791
    37923792                .ifne   BUCHLA
    37933793
    3794 mc1iorec:       ds.b    IORECLN         | MIDI-1 iorec structure
    3795 mc2iorec:       ds.b    IORECLN         | MIDI-2 iorec structure
    3796 
    3797                 .endc
    3798 
    3799 sr1ibuf:        ds.b    SR1IBS          | Serial-1 input buffer
    3800 sr1obuf:        ds.b    SR1OBS          | Serial-1 output buffer
    3801 sr2ibuf:        ds.b    SR2IBS          | Serial-2 input buffer
    3802 sr2obuf:        ds.b    SR2OBS          | Serial-2 output buffer
     3794mc1iorec:       .ds.b   IORECLN         | MIDI-1 iorec structure
     3795mc2iorec:       .ds.b   IORECLN         | MIDI-2 iorec structure
     3796
     3797                .endc
     3798
     3799sr1ibuf:        .ds.b   SR1IBS          | Serial-1 input buffer
     3800sr1obuf:        .ds.b   SR1OBS          | Serial-1 output buffer
     3801sr2ibuf:        .ds.b   SR2IBS          | Serial-2 input buffer
     3802sr2obuf:        .ds.b   SR2OBS          | Serial-2 output buffer
    38033803
    38043804                .ifne   BUCHLA
    38053805
    3806 mc1ibuf:        ds.b    MC1IBS          | MIDI-1 input buffer
    3807 mc1obuf:        ds.b    MC1OBS          | MIDI-1 output buffer
    3808 mc2ibuf:        ds.b    MC2IBS          | MIDI-2 input buffer
    3809 mc2obuf:        ds.b    MC2OBS          | MIDI-2 output buffer
    3810 
    3811 api_inp:        ds.b    1               | Analog processor input byte
    3812 api_bug:        ds.b    1               | Analog processor signal # "bug trap"
    3813 api_sv:         ds.b    1               | Analog processor state
    3814 api_svb:        ds.b    1               | Analog processor state "bug trap"
     3806mc1ibuf:        .ds.b   MC1IBS          | MIDI-1 input buffer
     3807mc1obuf:        .ds.b   MC1OBS          | MIDI-1 output buffer
     3808mc2ibuf:        .ds.b   MC2IBS          | MIDI-2 input buffer
     3809mc2obuf:        .ds.b   MC2OBS          | MIDI-2 output buffer
     3810
     3811api_inp:        .ds.b   1               | Analog processor input byte
     3812api_bug:        .ds.b   1               | Analog processor signal # "bug trap"
     3813api_sv:         .ds.b   1               | Analog processor state
     3814api_svb:        .ds.b   1               | Analog processor state "bug trap"
    38153815
    38163816                .even
    38173817
    3818 api_sig:        ds.b    1               | Analog signal number
    3819 api_val:        ds.b    1               | Analog value
    3820 
    3821 api_fi:         ds.l    1               | Analog processor FIFO input pointer
    3822 api_fo:         ds.l    1               | Analog processor FIFO output pointer
    3823 api_fum:        ds.w    APISIZE         | Analog processor FIFO
     3818api_sig:        .ds.b   1               | Analog signal number
     3819api_val:        .ds.b   1               | Analog value
     3820
     3821api_fi:         .ds.l   1               | Analog processor FIFO input pointer
     3822api_fo:         .ds.l   1               | Analog processor FIFO output pointer
     3823api_fum:        .ds.w   APISIZE         | Analog processor FIFO
    38243824api_fe:                                 | End of analog processor FIFO
    38253825
     
    38283828                .even
    38293829
    3830 basepage:       ds.l    64              | Pseudo base page
    3831 
    3832 buffer:         ds.b    1024            | Default disk buffer
     3830basepage:       .ds.l   64              | Pseudo base page
     3831
     3832buffer:         .ds.b   1024            | Default disk buffer
    38333833
    38343834biostop:                                | End of BIOS RAM
  • rom/lowram.s

    r5117699 r4cfe69a  
    129129| This MUST live in the 'text' segment for things to work.
    130130
    131 p_lowtpa:       dc.l    0                       | low address of TPA
    132 p_hitpa:        dc.l    0                       | high address + 1 of TPA
    133 p_tbase:        dc.l    0                       | low address of text segment
    134 p_tlen:         dc.l    0                       | length of text segment
    135 p_dbase:        dc.l    0                       | low address of data segment
    136 p_dlen:         dc.l    0                       | length of data segment
    137 p_bbase:        dc.l    0                       | low address of BSS segment
    138 p_blen:         dc.l    0                       | length of BSS segment
    139 p_dta:          dc.l    0                       | pointer to DTA
    140 p_parent:       dc.l    0                       | pointet to parent basepage
    141                 dc.l    0
    142 p_env:          dc.l    0                       | pointer to environment string
    143                 ds.l    20
    144 p_cmdlin:       dc.b    0                       | command line tail image
    145                 ds.b    127
     131p_lowtpa:       .dc.l   0                       | low address of TPA
     132p_hitpa:        .dc.l   0                       | high address + 1 of TPA
     133p_tbase:        .dc.l   0                       | low address of text segment
     134p_tlen:         .dc.l   0                       | length of text segment
     135p_dbase:        .dc.l   0                       | low address of data segment
     136p_dlen:         .dc.l   0                       | length of data segment
     137p_bbase:        .dc.l   0                       | low address of BSS segment
     138p_blen:         .dc.l   0                       | length of BSS segment
     139p_dta:          .dc.l   0                       | pointer to DTA
     140p_parent:       .dc.l   0                       | pointet to parent basepage
     141                .dc.l   0
     142p_env:          .dc.l   0                       | pointer to environment string
     143                .ds.l   20
     144p_cmdlin:       .dc.b   0                       | command line tail image
     145                .ds.b   127
    146146
    147147current:
     
    165165                .even
    166166
    167 basebss:        ds.l    1                               | start of BSS
     167basebss:        .ds.l   1                               | start of BSS
    168168
    169169                .end
  • vlib/vputp.s

    r5117699 r4cfe69a  
    104104                .data
    105105
    106 MTAB:           dc.w    0xFFF0,0xFF0F,0xF0FF,0x0FFF     | Mask table
    107 STAB:           dc.w    0,4,8,12                | Shift table
     106MTAB:           .dc.w   0xFFF0,0xFF0F,0xF0FF,0x0FFF     | Mask table
     107STAB:           .dc.w   0,4,8,12                | Shift table
    108108
    109109                .end
  • vlib/vwputp.s

    r5117699 r4cfe69a  
    102102                bra     vputexit                | Go unlink stack and return
    103103
    104 MTAB:           dc.w    0xFFFC,0xFFF3,0xFFCF,0xFF3F     | Mask table
    105                 dc.w    0xFCFF,0xF3FF,0xCFFF,0x3FFF
    106 STAB:           dc.w    0,2,4,6,8,10,12,14      | Shift table
     104MTAB:           .dc.w   0xFFFC,0xFFF3,0xFFCF,0xFF3F     | Mask table
     105                .dc.w   0xFCFF,0xF3FF,0xCFFF,0x3FFF
     106STAB:           .dc.w   0,2,4,6,8,10,12,14      | Shift table
    107107
    108108                .end
Note: See TracChangeset for help on using the changeset viewer.