1
0
mirror of https://github.com/livingcomputermuseum/UniBone.git synced 2026-01-29 05:01:09 +00:00
Files
livingcomputermuseum.UniBone/10.01_base/3_test/activereg.mac
Joerg Hoppe 2530d9cbb5 Initial
2019-04-05 11:30:26 +02:00

19 lines
390 B
Plaintext

; test read/write on actoive register (which is 16bit read/write)
tstadr = 160000
.asect
.=1000
start:
mov #testadr,r3
inc r3
mov r3,r2
; r2 = 160000, r3 = 160001
clr (r2) ; 0x0000
movb #377,(r2) ; 0x0000 -> 0x00ff
movb #377,(r3) ; 0x00ff -> 0xffff 177777
movb #0,(r2) ; 0xffff -> 0xff00 177400
movb #0,(r3) ; 0xff00 -> 0x0000
halt
; see logic analyzer trace