One of my oneathesedays projects which I haven't touched in a million years is to come up with some kind of uber-simplified object-oriented system (ala Smalltalk, but CLI-oriented - so, ala GNU Smalltalk, I guess) which could run on a reasonably-specced 8-bitter.
For the past five years I've been ...
Search found 8 matches
- Wed Aug 07, 2024 1:35 am
- Forum: General Discussions
- Topic: Self-hosting 65xx systems ... (Languages, OS, etc.)
- Replies: 39
- Views: 7112
- Sun Mar 26, 2023 4:21 am
- Forum: General Discussions
- Topic: What would you change in 1974 with Mensch & Peddle
- Replies: 90
- Views: 132330
Re: What would you change in 1974 with Mensch & Peddle
Add a stack for data. Make both the address stack and data stack relocatable (to page boundaries).
- Sun Mar 26, 2023 3:42 am
- Forum: Programming
- Topic: on HN: "Explaining my fast 6502 code generator"
- Replies: 7
- Views: 3305
Re: on HN: "Explaining my fast 6502 code generator"
I've found his write-up on how it's done, and the principles underneath enlightening and very useful.
For the past few years I've been writing a large 6502 application framework and a number of techniques used to squeeze out more performance mirror the ones he's described. He explains simply and ...
For the past few years I've been writing a large 6502 application framework and a number of techniques used to squeeze out more performance mirror the ones he's described. He explains simply and ...
- Mon Dec 20, 2021 4:55 am
- Forum: Programming
- Topic: Architectural question form a learner
- Replies: 16
- Views: 3141
Re: Architectural question form a learner
I've been writing an application framework and encountered similar issues during development. Many of the possible approaches have already been covered in this thread, but one I've found useful is a simple dynamic allocation of memory.
For example, a subroutine that instantiated a number of ...
For example, a subroutine that instantiated a number of ...
- Thu Apr 04, 2019 1:44 am
- Forum: Programming
- Topic: C64 Programmer's Reference Guide errors
- Replies: 7
- Views: 1645
Re: C64 Programmer's Reference Guide errors
Mine's printed in the UK, 1st Edition, 4th printing. I have a number of other PRG editions (and printings) in my collection and the changes and errors certainly vary. Fortunately the PRG is pretty good in terms of relevant information for ML programming, and assisted my exploration of the ROM code ...
- Wed Apr 03, 2019 12:52 am
- Forum: Programming
- Topic: C64 Programmer's Reference Guide errors
- Replies: 7
- Views: 1645
Re: C64 Programmer's Reference Guide errors
That edition has multiple errors.
For example, the entry for SETLFS on page 297. At the bottom in "How to Use", the first 2 steps are incorrect.
They SHOULD read:
1) Load the accumulator with the logical file number.
2) Load the .X register with the device number.
On page 299 the description is ...
For example, the entry for SETLFS on page 297. At the bottom in "How to Use", the first 2 steps are incorrect.
They SHOULD read:
1) Load the accumulator with the logical file number.
2) Load the .X register with the device number.
On page 299 the description is ...
- Sun Jan 20, 2019 2:52 am
- Forum: Programming
- Topic: Subroutine parameters
- Replies: 20
- Views: 24840
Re: Subroutine parameters
... I've been using the in-line, pull address of the stack thing for a very long time ...
I'm a relatively new convert to inlining. Now I try to use it wherever fast execution time isn't required. The benefits I find are code size and readability.
Another cool trick (to my mind) is to declare a ...
I'm a relatively new convert to inlining. Now I try to use it wherever fast execution time isn't required. The benefits I find are code size and readability.
Another cool trick (to my mind) is to declare a ...
- Wed Jan 09, 2019 2:01 pm
- Forum: Programming
- Topic: Subroutine parameters
- Replies: 20
- Views: 24840
Re: Subroutine parameters
Here's one of the generic techniques I use for inline parameters. It's assumed there is no terminator, and the number of parameter bytes is variable (the subroutine handles that).
A subroutine that is expecting inline parameters begins with jsr ISetup. The subroutine needs to exit with an RTS and ...
A subroutine that is expecting inline parameters begins with jsr ISetup. The subroutine needs to exit with an RTS and ...