Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TweakCCode breaks table access (sometimes) #9

Open
mzattera opened this issue Jan 10, 2021 · 0 comments
Open

TweakCCode breaks table access (sometimes) #9

mzattera opened this issue Jan 10, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@mzattera
Copy link
Owner

The attached file if compiled with BF_fbf.bat generate wrong results, it is correct if we skip TweakCCode optimization for accessing
tables.

#LINEBREAKS 72
#LINEMODE DOS			

#DIM ics
#TABLE stack 10
#DIM stack@top@

#dim a b c

msg W esseTop-
byte2ascii stack@top@ a b c 
print a b c
line
WTABLE stack stack@top@ 66
INC stack@top@ 1

msg W esseTop-
byte2ascii stack@top@ a b c 
print a b c
line
WTABLE stack stack@top@ 90
INC stack@top@ 1

msg W esseTop-
byte2ascii stack@top@ a b c 
print a b c
line
WTABLE stack stack@top@ 65
INC stack@top@ 1



DEC stack@top@ 1
msg R esseTop-
byte2ascii stack@top@ a b c 
print a b c
line

RTABLE stack stack@top@ ics
msg ics-
byte2ascii ics a b c 
print a b c
line

DEC stack@top@ 1
msg R esseTop-
byte2ascii stack@top@ a b c 
print a b c
line

RTABLE stack stack@top@ ics
msg ics-
byte2ascii ics a b c 
print a b c
line

DEC stack@top@ 1
msg R esseTop-
byte2ascii stack@top@ a b c 
print a b c
line

RTABLE stack stack@top@ ics
msg ics-
byte2ascii ics a b c 
print a b c
line


@mzattera mzattera added the bug Something isn't working label Jan 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant