leuat / TRSE

Turbo Rascal Syntax Error full repo
GNU General Public License v3.0
239 stars 44 forks source link

Constants issue in syntax.txt #151

Closed AndyHOvine closed 4 years ago

AndyHOvine commented 4 years ago

When using GETKEY() to test for keys, there are two sets of constants defined to use with them.

One is for the C64 and one for the Vic20.

c; KEY_2; C64, PLUS4, C128; b;$32 c; KEY_2; VIC20; b;56

The assembler is always picking the first KEY_2 value regardless of the build target. This means that when building for the VIC 20, a value of $32 is returned instead of 56.

leuat commented 4 years ago

Fixed!