From: uz Date: Wed, 29 Jul 2009 14:37:58 +0000 (+0000) Subject: Correct sweet16 addressing bug with SUB instr. Patch by Gabriele Galeotti. X-Git-Tag: V2.13.0rc1~273 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e1866ed9f8d7352427af25aaebc98d16e2e29976;p=cc65 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 --- 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 }, } };