Subversion Repositories pentevo

Rev

Blame | Last modification | View Log | Download | RSS feed | ?url?

  1.         cpu     68000
  2.         page    0
  3.  
  4.         ; these result in n*4 bytes in pass 1, and n*6 bytes in pass 2
  5.  
  6.         rept    100
  7.         jsr     sub
  8.         endm
  9.  
  10.         ; Currently needed to trigger the "repass anyway needed because symbol changed"
  11.         ; condition before the first branch is evaluated.  In a typical program, there
  12.         ; is always some label present to trigger it.
  13. dummy:
  14.  
  15.         ; without detection mechanism, the values of PC in pass 2 and of 'skip' from
  16.         ; pass 1 are so much apart that we would get an out-of-branch condition:
  17.  
  18.         bra.s   skip
  19.         nop
  20.         nop
  21.         nop
  22.         nop
  23.         nop
  24.         nop
  25. skip:
  26.  
  27.         ; Usually, one would try to define symbols before they are used the
  28.         ; first time.  Do it different here, just to demonstrate the situation:
  29.  
  30. sub     equ     $10000
  31.  
  32.