Changeset 8325447 in buchla-68k for ram/procpfl.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/procpfl.s

    r84c0125 r8325447  
    55                .text
    66
    7                 .xdef   _procpfl
     7                .xdef   procpfl
    88
    99                .xdef   _curpf_f        | current function (v/p)
     
    1111                .xdef   _curpf_t        | current trigger
    1212
    13                 .xref   _irand
    14                 .xref   _xgetran
    15 
    16                 .xref   _expbit
    17                 .xref   _funcndx
    18                 .xref   _pflist
    19                 .xref   _pfqhdr
    20                 .xref   _prstab
    21                 .xref   _ptoftab
    22                 .xref   _timemlt
    23                 .xref   _trgtab
    24                 .xref   _valents
    25                 .xref   _vce2grp
    26                 .xref   _vce2trg
    27                 .xref   _veltab
     13                .xref   irand
     14                .xref   xgetran
     15
     16                .xref   expbit
     17                .xref   funcndx
     18                .xref   pflist
     19                .xref   pfqhdr
     20                .xref   prstab
     21                .xref   ptoftab
     22                .xref   timemlt
     23                .xref   trgtab
     24                .xref   valents
     25                .xref   vce2grp
     26                .xref   vce2trg
     27                .xref   veltab
    2828
    2929                .page
     
    196196                .page
    197197| ------------------------------------------------------------------------------
    198 | _procpfl() -- process pendant functions
     198| procpfl() -- process pendant functions
    199199
    200200|       void
     
    208208| ------------------------------------------------------------------------------
    209209
    210 _procpfl:       nop                             | FOR DEBUGGING PATCH
     210procpfl:        nop                             | FOR DEBUGGING PATCH
    211211
    212212                link    a6,#0                   | allocate stack frame
     
    218218                move.w  TRIG(a6),d6             | get trigger we're processing
    219219                move.w  d6,_curpf_t             | ...
    220                 movea.l #_pflist,RPRV           | point at 'previous' pflist entry
     220                movea.l #pflist,RPRV            | point at 'previous' pflist entry
    221221                bra     pfscan                  | go scan the chain
    222222
     
    241241
    242242pfnext:         move.l  (RCUR),(RPRV)           | remove entry from pflist
    243                 move.l  _pfqhdr,(RCUR)          | chain entry to free list
    244                 move.l  RCUR,_pfqhdr            | ...
     243                move.l  pfqhdr,(RCUR)           | chain entry to free list
     244                move.l  RCUR,pfqhdr             | ...
    245245                bra     pfscan                  | go look at next entry
    246246
     
    319319                move.w  d3,d0                   | extract mantissa
    320320                andi.w  #MSK_MNT,d0             | ...
    321                 mulu    _timemlt,d0             | multiply by panel time pot value
     321                mulu    timemlt,d0              | multiply by panel time pot value
    322322                lsr.l   #8,d0                   | ... and scale it
    323323                lsr.l   #7,d0                   | ...
     
    325325                andi.w  #MSK_EXP,d3             | extract exponent code
    326326                add.w   d3,d3                   | look up decoded exponent
    327                 lea     _expbit,a0              | ... in expbit
     327                lea     expbit,a0               | ... in expbit
    328328                move.w  0(a0,d3.W),F_EXP(a3,d1.W)       | send exponent to FPU
    329329                move.w  PT_VAL(a2,d2.W),d3      | get the function value
     
    348348                movem.l d1-d2/a0-a2,-(a7)       | preserve registers around call
    349349                move.w  PT_VMLT(a2,d2.W),-(a7)  | pass multiplier to xgetran()
    350                 jsr     _xgetran                | call for a random number
     350                jsr     xgetran                 | call for a random number
    351351                tst.w   (a7)+                   | clean up stack
    352352                movem.l (a7)+,d1-d2/a0-a2       | restore registers
     
    364364                lsr.w   #6,d0           | shift to a word index
    365365                andi.w  #0x01FE,d0      | mask out extraneous bits
    366                 lea     _ptoftab,a0     | get entry from ptoftab[]
     366                lea     ptoftab,a0      | get entry from ptoftab[]
    367367                move.w  0(a0,d0.W),d5   | ...
    368368                bra     applym          | go apply the multiplier
     
    385385                move.w  FH_TRG(a1),d0   | get the trigger number
    386386                add.w   d0,d0           | ... as a word index
    387                 lea     _veltab,a0      | ... into veltab[]
     387                lea     veltab,a0       | ... into veltab[]
    388388                move.w  0(a0,d0.W),d5   | get the velocity from veltab[trg]
    389389                bra     applym          | go apply the multiplier
     
    397397                move.w  FH_TRG(a1),d0   | get the trigger number
    398398                add.w   d0,d0           | ... as a word index
    399                 lea     _prstab,a0      | ... into prstab[]
     399                lea     prstab,a0       | ... into prstab[]
    400400                move.w  0(a0,d0.W),d5   | get the pressure from prstab[trg]
    401401                bra     applym          | go apply the multiplier
     
    405405| all other sources come out of the valents[] array
    406406| ------------------------------------------------------------------------------
    407 srctyp4:        lea     _vce2grp,a0     | point at vce2grp[]
     407srctyp4:        lea     vce2grp,a0      | point at vce2grp[]
    408408                move.w  _curpf_f,d5     | get voice number in d5
    409409                lsr.w   #3,d5           | ...
     
    417417                lsl.w   #2,d0           | ...  via shift and add)
    418418                add.w   d5,d0           | ...
    419                 lea     _valents,a0     | get base of valents[]
     419                lea     valents,a0      | get base of valents[]
    420420                move.w  VT_VAL(a0,d0.W),d5      | get value
    421421
     
    559559                lsr.w   #3,d0           | ...
    560560                andi.w  #0x001E,d0      | ...
    561                 lea     _vce2trg,a0     | check to see if voice is free
     561                lea     vce2trg,a0      | check to see if voice is free
    562562                move.w  0(a0,d0.W),d0   | ...
    563563                cmpi.w  #-1,d0          | ...
     
    570570                bne     act0            | ...
    571571
    572                 lea     _trgtab,a0      | check trigger table entry
     572                lea     trgtab,a0       | check trigger table entry
    573573                tst.b   0(a0,d0.W)      | ...
    574574                bne     act0            | if trigger is active, continue
     
    606606                movem.l d1-d2/a0-a2,-(a7)       | get ranged random number
    607607                move.w  d0,-(a7)                | ...
    608                 jsr     _irand                  | ...
     608                jsr     irand                   | ...
    609609                tst.w   (a7)+                   | ...
    610610                movem.l (a7)+,d1-d2/a0-a2       | ...
     
    630630                lsr.w   #3,d0           | ...
    631631                andi.w  #0x001E,d0      | ...
    632                 lea     _vce2trg,a0     | check to see if voice is free
     632                lea     vce2trg,a0      | check to see if voice is free
    633633                move.w  0(a0,d0.W),d0   | ...
    634634                cmpi.w  #-1,d0          | ...
     
    641641                bne     act0            | ...
    642642
    643                 lea     _trgtab,a0      | check trigger table entry
     643                lea     trgtab,a0       | check trigger table entry
    644644                tst.b   0(a0,d0.W)      | see if the trigger is active
    645645                beq     act3            | if not, do the jump
     
    655655                lsr.w   #3,d0           | ...
    656656                andi.w  #0x001E,d0      | ...
    657                 lea     _vce2trg,a0     | check to see if voice is free
     657                lea     vce2trg,a0      | check to see if voice is free
    658658                move.w  0(a0,d0.W),d0   | ...
    659659                cmpi.w  #-1,d0          | ...
     
    666666                bne     act3            | ...
    667667
    668                 lea     _trgtab,a0      | check trigger table entry
     668                lea     trgtab,a0       | check trigger table entry
    669669                tst.b   0(a0,d0.W)      | see if the trigger is active
    670670                bne     act3            | if so, do the jump
     
    682682                lsr.w   #3,d0           | ...
    683683                andi.w  #0x001E,d0      | ...
    684                 lea     _vce2trg,a0     | point at voice to trigger table
     684                lea     vce2trg,a0      | point at voice to trigger table
    685685                move.w  0(a0,d0.W),d0   | get trigger table entry
    686686                cmpi.w  #-1,d0          | see if voice is free
     
    693693                bne     act1a           | sustain if so
    694694
    695                 lea     _trgtab,a0      | point at trigger table
     695                lea     trgtab,a0       | point at trigger table
    696696                tst.b   0(a0,d0.W)      | check trigger status
    697697                beq     act0            | continue if not active
    698698
    699 act1a:          move.l  _pfqhdr,d3      | see if any pflist entries remain
     699act1a:          move.l  pfqhdr,d3       | see if any pflist entries remain
    700700                beq     act0            | no-op if not  (shouldn't happen ...)
    701701
     
    709709                addi.w  #PT_LEN,d2              | update point index
    710710                movea.l d3,a0                   | acquire a new pflist entry
    711                 move.l  (a0),_pfqhdr            | ...
    712                 move.l  _pflist,(a0)            | ...
    713                 move.l  a0,_pflist              | ...
     711                move.l  (a0),pfqhdr             | ...
     712                move.l  pflist,(a0)             | ...
     713                move.l  a0,pflist               | ...
    714714                move.w  FH_TRG(a1),PF_TRIG(a0)  | set trigger number in entry
    715715                move.w  _curpf_f,PF_FUNC(a0)    | set v/p word in entry
Note: See TracChangeset for help on using the changeset viewer.