avra: fix misordered MOV, MUL, NEG and NOP

This commit is contained in:
Virgil Dupras 2019-12-22 18:27:34 -05:00
parent f54e10f9fd
commit 8ded02bc78
4 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -1,4 +1,3 @@
; TODO: implement instructions that are commented out
; REGISTER USAGE ; REGISTER USAGE
; ;
; R1: overflow counter ; R1: overflow counter

View File

@ -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.