Skip to content

Commit 23b28db

Browse files
authored
Merge pull request #194 from boriel/bugfix/zxbasm_shift
Bugfix: change LSHIFT and RSHIFT toke names
2 parents ad67423 + 280bff8 commit 23b28db

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

asmlex.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,11 +303,11 @@ def t_RP(self, t):
303303
return t
304304

305305
def t_LSHIFT(self, t):
306-
r'>>'
306+
r'<<'
307307
return t
308308

309309
def t_RSHIFT(self, t):
310-
r'<<'
310+
r'>>'
311311
return t
312312

313313
def t_BAND(self, t):

tests/functional/shift.asm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
LD a, 255 >> 1
3+
LD a, 1 << 1
4+

tests/functional/shift.bin

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
>>

0 commit comments

Comments
 (0)