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

25 lines
545 B
NASM

;;;;;;;;;;;;;;;;;;;;;;;;;
; check LWC instruction
;;;;;;;;;;;;;;;;;;;;;;;;;
org 00100
; check simple LWC
lwc 0 ; load AC with complement of 0
sam zero ; check -0 is 0
hlt ;
lwc 1 ; load AC with complement of 1
sam minus1 ; check -1 is 0177777
hlt ;
lwc 2 ; load AC with complement of 2
sam minus2 ; check -2 is 0177776
hlt ;
lwc 03777 ; load AC with complement of 03777
sam mmax ; check we have complement of 03777
hlt ;
hlt ;
; data for test
zero data 0 ;
minus1 data 0177777 ;
minus2 data 0177776 ;
mmax data 0174001 ;
end