From ef84fb6fcb45a86fce97acda58606a76a937a1da Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Mon, 1 May 2023 21:44:35 +0100 Subject: Added the VM player using SDL - Wired basic functionality (fram-buffer, frame interrupt) - Bug fixes in the assembler --- tr8as.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tr8as.c') diff --git a/tr8as.c b/tr8as.c index fde3278..e450288 100644 --- a/tr8as.c +++ b/tr8as.c @@ -530,8 +530,8 @@ static uint8_t parse_r1_r2_or_imm(As *as, char *c, uint8_t *r1, uint8_t *r2, uin if (*imm > 0xff) return error_l("Overflow in immediate", &as->loc, word); } - /* AND r1, label */ - else if (!new_ref(as, word, 0xff, as->addr + 1)) + /* ? r1, label */ + else if (!new_ref(as, word, 0xff, as->addr)) return 0; return 1; @@ -1204,7 +1204,7 @@ static uint8_t parse_ld(As *as, char *c) return error_l("Overflow in immediate", &as->loc, word); } /* LD r1, label */ - else if (!new_ref(as, word, 0xff, as->addr + 1)) + else if (!new_ref(as, word, 0xff, as->addr)) return 0; emit(as, 1, r1, 0, imm); -- cgit v1.2.3