1
0
mirror of https://github.com/rzzzwilson/pymlac.git synced 2025-06-10 09:32:41 +00:00
Files
rzzzwilson.pymlac/pymlac/test_law.asm
2015-05-20 19:02:17 +07:00

25 lines
472 B
NASM

;;;;;;;;;;;;;;;;;;;;;;;;;
; check LAW instruction
;;;;;;;;;;;;;;;;;;;;;;;;;
org 00100
; check simple LAW
law 0 ; load AC with 0
sam zero ; check it's actually 0
hlt ;
law 1 ; load AC with 1
sam one ; check it's actually 1
hlt ;
law 2 ; load AC with 2
sam two ; check it's actually 2
hlt ;
law 03777 ; load AC with 11-bit ones
sam max ; check it's actually 03777
hlt ;
hlt ;
; data for tests
zero data 0 ;
one data 1 ;
two data 2 ;
max data 03777 ;
end