Hello, I searched around for a compact routine for calculating the VIC-II byte address of a point, given its (x, y) coordinates. As you know, the VIC-II has a weird addressing, i.e. the bitmap addressing in 320x200 graphic mode is not linear: the very first 8 addresses refer to the 8x8-pixel block ...
BTW, I'm coding an interpreter for executing OCaml bytecode on a 6510-based hw (i.e., the C64; but it should be easily generalized). The interpreter, as you can imagine, makes heavy use of a stack: not only for math, but also for function calls, exception frames, and so on. Some detail of the ...
Thank you.
Yes, CPU_STACK_PTR is not used elsewhere. The RTS at the end of main_loop must return to a BASIC program.
---
BTW: I think I'll study your 6502 STACK Treatise...
Hi all, I need a way to escape from any level of nested subroutines and get back to the first caller level (somewhat like an exception handler), ensuring that its last RTS will be handled correctly. Neither the main loop nor the subroutines make explicit use of the stack (i.e., it is used only by ...
Hi all, maybe some of you will have heard something about OCaml , a multi-paradigm programming language with a lot of nice features. Well, I'm trying to write a runtime system in order to execute the OCaml bytecode on the C64. :shock: After a look of OCapic ...