1
0
mirror of https://github.com/mist-devel/mist-board.git synced 2026-05-03 06:49:32 +00:00
Files
mist-devel.mist-board/cores/archie/bench/fuzz/bugs/teqbug.s
2016-05-23 18:31:00 +01:00

31 lines
486 B
ArmAsm

AREA |main|, CODE, READONLY
EXPORT _start
ORG &1000
_start
;; setup the carry for the test
;; could do this in program.cpp but
;; doing this makes the test repeatable
;; on a real Archie from BASIC V.
MOV R0,#0
SUB R1,R0,#1
ADDS R1,R1,#1
;;Do the test
MOV R4,#0
MOV R5,#&53000000
TEQS R4,R5
;; flag a result to BASIC/Program.cpp
MOVCC R0,#1
MOVCS R0,#0
EXIT
;; clean exit path so that R15 will match up
NOP
NOP
SWI &FFFFFF
NOP
NOP
END