| 1 |
*=$1000 |
| 2 |
label1 nop |
| 3 |
!pseudopc $0300 { |
| 4 |
label2 nop |
| 5 |
!if * != $0301 { !error "pseudo pc is not $0301" } |
| 6 |
!if &* != $1002 { !error "un-pseudo'd pc is not $1002" } |
| 7 |
selfmod = * + 1 |
| 8 |
lda #$ff |
| 9 |
|
| 10 |
does_not_make_sense = label1 + 1 |
| 11 |
|
| 12 |
*=$0380 |
| 13 |
nop |
| 14 |
!if * != $0381 { !error "pseudo pc is not $0381" } |
| 15 |
!if &* != $1082 { !error "un-pseudo'd pc is not $1082" } |
| 16 |
} |
| 17 |
!if * != $1082 { !error "pc is not $1082" } |
| 18 |
|
| 19 |
!if label2 != $0300 { !error "label2 is not $0300" } |
| 20 |
!if &label2 != $1001 { !error "&label2 is not $1001" } |
| 21 |
|
| 22 |
!if selfmod != $0302 { !error "selfmod is not $0302" } |
| 23 |
!if &selfmod != $1003 { !error "&selfmod is not $1003" } |
| 24 |
|
| 25 |
!if does_not_make_sense != $1001 { !error "dnms is not $1001" } |
| 26 |
!if &does_not_make_sense != $1d02 { !error "dnms is not $1d02" } |
| 27 |
|
| 28 |
; older versions automatically wrapped the pseudopc to zero, I now |
| 29 |
; realize this should be considered a bug: |
| 30 |
!pseudopc $fffe { |
| 31 |
!by 0, 1, 2, 3 |
| 32 |
label3 } |
| 33 |
!if label3 != $10002 { |
| 34 |
!error "pseudopc seems to wrap to zero after $ffff" |
| 35 |
} |
| 36 |
; and even worse, older versions automatically wrapped the outbuf index |
| 37 |
; to zero as well, this is now also considered a bug: |
| 38 |
*=$10000 ; enter "second bank" |
| 39 |
!if * == 0 { |
| 40 |
!error "pc seems to wrap to zero after $ffff" |
| 41 |
} |