ack/mach/6500/libem/test2.s

25 lines
382 B
ArmAsm
Raw Normal View History

1984-12-17 11:03:13 +00:00
.define Test2
1987-01-30 18:41:42 +00:00
.sect .text
.sect .rom
.sect .data
.sect .bss
.sect .text
1984-12-17 11:03:13 +00:00
! This subroutine tests if the value on top of the stack is 2.
! It is used if the size is on top of the stack.
! The word which is to be handled is returned in registerpair AX.
Test2:
tay
bne 1f ! value > 255
cpx #2
bne 1f ! value <> 2
jsr Pop ! get word
rts
1: ldx #Eoddz
lda #0
jsr Trap