From e1866ed9f8d7352427af25aaebc98d16e2e29976 Mon Sep 17 00:00:00 2001 From: uz Date: Wed, 29 Jul 2009 14:37:58 +0000 Subject: [PATCH] Correct sweet16 addressing bug with SUB instr. Patch by Gabriele Galeotti. git-svn-id: svn://svn.cc65.org/cc65/trunk@3982 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/ca65/instr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ca65/instr.c b/src/ca65/instr.c index 88acf515e..74529865b 100644 --- a/src/ca65/instr.c +++ b/src/ca65/instr.c @@ -625,7 +625,7 @@ static const struct { { "ST", AMSW16_REG | AMSW16_IND, 0x10, 1, PutSweet16 }, { "STD", AMSW16_IND, 0x70, 0, PutSweet16 }, { "STP", AMSW16_IND, 0x90, 0, PutSweet16 }, - { "SUB", AMSW16_IMM, 0xB0, 0, PutSweet16 }, + { "SUB", AMSW16_REG, 0xB0, 0, PutSweet16 }, } }; -- 2.39.5