Changeset 8325447 in buchla-68k for ram/timeint.s


Ignore:
Timestamp:
08/07/2017 02:04:35 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
27c8d40
Parents:
84c0125
Message:

Removed _ prefix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ram/timeint.s

    r84c0125 r8325447  
    2626                .text
    2727
    28                 .xdef   _tsetup         | tsetup() -- timer setup function
     28                .xdef   tsetup          | tsetup() -- timer setup function
    2929                .xdef   timeint         | timer interrupt handler
    3030
    31                 .xdef   _M1IoRec        | MIDI channel 1 IoRec
    32                 .xdef   _M2IoRec        | MIDI channel 2 IoRec
    33                 .xdef   _S1IoRec        | RS232 channel 1 IoRec
    34                 .xdef   _S2IoRec        | RS232 channel 2 IoRec
    35                 .xdef   _timers         | timer array -- short timers[NTIMERS]
    36                 .xdef   _vi_clk         | VSDD scroll delay timer
    37                 .xdef   _vi_tag         | VSDD VI tag
     31                .xdef   M1IoRec         | MIDI channel 1 IoRec
     32                .xdef   M2IoRec         | MIDI channel 2 IoRec
     33                .xdef   S1IoRec         | RS232 channel 1 IoRec
     34                .xdef   S2IoRec         | RS232 channel 2 IoRec
     35                .xdef   timers          | timer array -- short timers[NTIMERS]
     36                .xdef   vi_clk          | VSDD scroll delay timer
     37                .xdef   vi_tag          | VSDD VI tag
    3838
    3939                .xref   lclsadr         | score object base address
    4040                .xref   lclscrl         | score object scroll offset
    41                 .xref   _v_odtab        | VSDD object descriptor table
     41                .xref   v_odtab         | VSDD object descriptor table
    4242
    4343                .page
     
    130130                .page
    131131| ==============================================================================
    132 | _tsetup -- tsetup() -- timer setup function
    133 | ==============================================================================
    134 
    135 _tsetup:        move.w  sr,-(a7)                | Save old interrupt mask
     132| tsetup -- tsetup() -- timer setup function
     133| ==============================================================================
     134
     135tsetup:         move.w  sr,-(a7)                | Save old interrupt mask
    136136                ori.w   #IPL7,sr                | Disable interrupts
    137137
     
    140140                trap    #XBIOS                  | ...
    141141                add.l   #4,a7                   | ...
    142                 move.l  d0,_S1IoRec             | ...
     142                move.l  d0,S1IoRec              | ...
    143143
    144144                move.w  #SR2_DEV,-(a7)          | Establish S2IoRec
     
    146146                trap    #XBIOS                  | ...
    147147                add.l   #4,a7                   | ...
    148                 move.l  d0,_S2IoRec             | ...
     148                move.l  d0,S2IoRec              | ...
    149149
    150150                move.w  #MC1_DEV,-(a7)          | Establish M1IoRec
     
    152152                trap    #XBIOS                  | ...
    153153                add.l   #4,a7                   | ...
    154                 move.l  d0,_M1IoRec             | ...
     154                move.l  d0,M1IoRec              | ...
    155155
    156156                move.w  #MC2_DEV,-(a7)          | Establish M2IoRec
     
    158158                trap    #XBIOS                  | ...
    159159                add.l   #4,a7                   | ...
    160                 move.l  d0,_M2IoRec             | ...
     160                move.l  d0,M2IoRec              | ...
    161161
    162162                .page
     
    164164                clr.w   FC_SW                   | Stop the frame clock
    165165                clr.l   FC_VAL                  | ... and reset it
    166                 clr.w   _vi_tag                 | Clear VSDD VI tag
    167                 clr.w   _vi_clk                 | Clear VSDD delay timer
     166                clr.w   vi_tag                  | Clear VSDD VI tag
     167                clr.w   vi_clk                  | Clear VSDD delay timer
    168168                clr.w   lclsadr                 | Clear score scroll address
    169169                clr.w   lclscrl                 | Clear score scroll offset
    170170
    171                 lea     _timers,a0              | Point at timer array
     171                lea     timers,a0               | Point at timer array
    172172                move.w  #NTIMERS-1,d0           | Setup to clear timer array
    173173
     
    217217| process VSDD timer
    218218| ------------------------------------------------------------------------------
    219                 tst.w   _vi_tag                 | Does the VSDD need service ?
     219                tst.w   vi_tag                  | Does the VSDD need service ?
    220220                beq     updtime                 | Jump if not
    221221
    222                 move.w  _vi_clk,d0              | Get VSDD scroll delay timer
     222                move.w  vi_clk,d0               | Get VSDD scroll delay timer
    223223                subq.w  #1,d0                   | Decrement timer
    224                 move.w  d0,_vi_clk              | Update timer
     224                move.w  d0,vi_clk               | Update timer
    225225                bne     updtime                 | Jump if it's not zero yet
    226226
    227                 move.w  lclsadr,_v_odtab+12     | Update scroll address
    228                 move.w  lclscrl,_v_odtab+10     | Update scroll offset
    229                 clr.w   _vi_tag                 | Reset the tag
     227                move.w  lclsadr,v_odtab+12      | Update scroll address
     228                move.w  lclscrl,v_odtab+10      | Update scroll offset
     229                clr.w   vi_tag                  | Reset the tag
    230230
    231231                .page
     
    236236
    237237updtime:        move.w  #NTIMERS-1,d0           | Setup timer array counter
    238                 lea     _timers,a0              | Point at timer array
     238                lea     timers,a0               | Point at timer array
    239239
    240240tdcr:           move.w  (a0),d1                 | Get timer array entry
     
    325325                ori.w   #0x0700,sr              | Disable interrupts
    326326
    327                 movea.l _M1IoRec,a0             | Point at M1IoRec
     327                movea.l M1IoRec,a0              | Point at M1IoRec
    328328                move.b  IO_CFR1(a0),d0          | Get MIDI-1 CFR1 value
    329329                or.b    #0x80,d0                | Force MSB = 1 for CFR1 output
     
    372372| ------------------------------------------------------------------------------
    373373
    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
     374timers:         .ds.w   NTIMERS         | Timer array -- short timers[NTIMERS];
     375
     376vi_clk:         .ds.w   1               | VSDD scroll delay timer
     377vi_tag:         .ds.w   1               | VSDD VI 'needs service' tag
     378
     379S1IoRec:        .ds.l   1               | address of RS232 channel 1 IoRec
     380S2IoRec:        .ds.l   1               | address of RS232 channel 2 IoRec
     381M1IoRec:        .ds.l   1               | address of MIDI channel 1 IoRec
     382M2IoRec:        .ds.l   1               | address of MIDI channel 2 IoRec
    383383| ==============================================================================
    384384
Note: See TracChangeset for help on using the changeset viewer.