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

Out of bounds error #13

Open
ivan-pi opened this issue Jan 9, 2024 · 0 comments
Open

Out of bounds error #13

ivan-pi opened this issue Jan 9, 2024 · 0 comments

Comments

@ivan-pi
Copy link
Owner

ivan-pi commented Jan 9, 2024

~/FC8/build$ ./FC8-Xlib ../cartridges/oob_test_2.ch8 
 ../cartridges/oob_test_2.ch8                                                                                                                                                                                                                                    
Open display done.
At line 605 of file /Users/di75yas/FC8/src/FC8_vm-Xlib.f90
Fortran runtime error: Index '4096' of dimension 1 of array 'memory' above upper bound of 4095

This as an out of bounds access in the BCD instruction:

memory(I+1) = int(d,byte)

(I was using an older version of the interpreter.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant