From c4bd010cf5f55ff7d12e0b9c5cc69e871d590e2c Mon Sep 17 00:00:00 2001 From: Jacques Comeaux Date: Fri, 19 Jul 2024 20:55:58 -0500 Subject: Fix parse instructions for JR and JLR --- assembler/instructions | 4 ++-- assembler/opcode.s | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/assembler/instructions b/assembler/instructions index 049b830..fc2f7d5 100644 --- a/assembler/instructions +++ b/assembler/instructions @@ -155,8 +155,8 @@ JLE BLE T1 11011 101 imm8 00 C8 B4 9B JA B T2 11100 imm11 00 00 CB 9C JIH BLHI T1 11110 imm11 00 00 CB 9E JIL BLLO T1 11111 imm11 00 00 CB 9F -JLR BLX T1 01000 1111 Rm 000 00 E3 BE 88 -JR BX T1 01000 1110 Rm 000 00 E3 BC 88 +JLR BLX T1 01000 1111 Rm4 000 00 F3 BE 88 +JR BX T1 01000 1110 Rm4 000 00 F3 BC 88 JS SVC T1 11011 111 imm8 00 C8 BC 9B C for COMPARE diff --git a/assembler/opcode.s b/assembler/opcode.s index 72f239f..d21ace0 100644 --- a/assembler/opcode.s +++ b/assembler/opcode.s @@ -168,7 +168,7 @@ J: .byte 'M, 0x00 ; .hword 0x0000 ; .word 0x00C8B09A // BMI T1 11010 100 imm8 .byte 'N, 0x00 ; .hword 0x0000 ; .word 0x00C8A49A // BNE T1 11010 001 imm8 .byte 'P, 0x00 ; .hword 0x0000 ; .word 0x00C8B49A // BPL T1 11010 101 imm8 - .byte 'R, 0x00 ; .hword 0x0000 ; .word 0x00E3BC88 // BX T1 01000 1110 Rm 000 + .byte 'R, 0x00 ; .hword 0x0000 ; .word 0x00F3BC88 // BX T1 01000 1110 Rm4 000 .byte 'S, 0x00 ; .hword 0x0000 ; .word 0x00C8BC9B // SVC T1 11011 111 imm8 .byte 'V, 0x01 ; .hword 0x0000 ; .word JV .word 0x00000000, 0x00000000 @@ -191,7 +191,7 @@ JI: JL: .byte 'E, 0x00 ; .hword 0x0000 ; .word 0x00C8B49B // BLE T1 11011 101 imm8 .byte 'O, 0x00 ; .hword 0x0000 ; .word 0x00C8AC9A // BLO T1 11010 011 imm8 - .byte 'R, 0x00 ; .hword 0x0000 ; .word 0x00E3BE88 // BLX T1 01000 1111 Rm 000 + .byte 'R, 0x00 ; .hword 0x0000 ; .word 0x00F3BE88 // BLX T1 01000 1111 Rm4 000 .byte 'S, 0x00 ; .hword 0x0000 ; .word 0x00C8A49B // BLS T1 11011 001 imm8 .byte 'T, 0x00 ; .hword 0x0000 ; .word 0x00C8AC9B // BLT T1 11011 011 imm8 .word 0x00000000, 0x00000000 -- cgit v1.2.3