mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-30 20:08:06 +11:00
avra: fix misordered MOV, MUL, NEG and NOP
This commit is contained in:
parent
f54e10f9fd
commit
8ded02bc78
@ -181,10 +181,10 @@ instrTbl:
|
|||||||
.db 0x01, 0b10010010, 0b00000101 ; LAS Rd
|
.db 0x01, 0b10010010, 0b00000101 ; LAS Rd
|
||||||
.db 0x01, 0b10010010, 0b00000111 ; LAT Rd
|
.db 0x01, 0b10010010, 0b00000111 ; LAT Rd
|
||||||
.db 0x01, 0b10010100, 0b00000110 ; LSR Rd
|
.db 0x01, 0b10010100, 0b00000110 ; LSR Rd
|
||||||
.db 0x00, 0b00000000, 0b00000000 ; NOP
|
|
||||||
.db 0x02, 0b00101100, 0x00 ; MOV Rd, Rr
|
.db 0x02, 0b00101100, 0x00 ; MOV Rd, Rr
|
||||||
.db 0x02, 0b10011100, 0x00 ; MUL Rd, Rr
|
.db 0x02, 0b10011100, 0x00 ; MUL Rd, Rr
|
||||||
.db 0x01, 0b10010100, 0b00000001 ; NEG Rd
|
.db 0x01, 0b10010100, 0b00000001 ; NEG Rd
|
||||||
|
.db 0x00, 0b00000000, 0b00000000 ; NOP
|
||||||
.db 0x02, 0b00101000, 0x00 ; OR Rd, Rr
|
.db 0x02, 0b00101000, 0x00 ; OR Rd, Rr
|
||||||
.db 0x87, 0b10111000, 0x00 ; OUT A, Rr (Bit 7)
|
.db 0x87, 0b10111000, 0x00 ; OUT A, Rr (Bit 7)
|
||||||
.db 0x01, 0b10010000, 0b00001111 ; POP Rd
|
.db 0x01, 0b10010000, 0b00001111 ; POP Rd
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
; TODO: implement instructions that are commented out
|
|
||||||
; REGISTER USAGE
|
; REGISTER USAGE
|
||||||
;
|
;
|
||||||
; R1: overflow counter
|
; R1: overflow counter
|
||||||
|
@ -21,3 +21,4 @@ bset 4
|
|||||||
bclr 7
|
bclr 7
|
||||||
call foo
|
call foo
|
||||||
jmp bar
|
jmp bar
|
||||||
|
mov r6, r30
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user