ack/mach/6500/libem/test2.s
1987-01-30 18:41:42 +00:00

25 lines
382 B
ArmAsm

.define Test2
.sect .text
.sect .rom
.sect .data
.sect .bss
.sect .text
! 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