An entertaining/horrifying use of the Unix Shell:
https://codeberg.org/calebccff/6502.sh
Discussion thread on Mastodon:
https://social.treehouse.systems/@cas/1 ... 0700263367
Search found 4 matches
- Fri Mar 21, 2025 7:39 am
- Forum: Programming
- Topic: 6502 emulator in 3 KLOC of busybox ash script
- Replies: 1
- Views: 1125
- Thu Nov 16, 2023 7:24 pm
- Forum: Programming
- Topic: Trying to grok the Woz FP routines
- Replies: 13
- Views: 10151
Re: Trying to grok the Woz FP routines
The reason I said it's unnecessary is really because of what happens next - it doesn't actually matter whether that memory location gets initialised with $00 or $80, nor the additional side effect of the ASL (setting the carry), as the next 20 lines execute the same either way, and this value in ...
- Tue Nov 14, 2023 5:37 pm
- Forum: Programming
- Topic: Trying to grok the Woz FP routines
- Replies: 13
- Views: 10151
Re: Trying to grok the Woz FP routines
Nice job. I only had a glance at the code, and spotted one instruction that seems unnecessary (the ASL three lines after NOTNEG), but that's a bit of a silly optimisation - there are probably more significant ones elsewhere!
Thanks!
Here's that ASL instruction in context:
NOTNEG LDA #$80 ...
Thanks!
Here's that ASL instruction in context:
NOTNEG LDA #$80 ...
- Mon Nov 13, 2023 11:11 pm
- Forum: Programming
- Topic: Trying to grok the Woz FP routines
- Replies: 13
- Views: 10151
Re: Trying to grok the Woz FP routines
New forum member bumping up an old thread.
Nice discussing. I am playing also with these routines, but I strugle with the in- and output. You wrote a nice routine wozf to show the numbers. Plese can you show the code for this litle program
I put together some 6502 code to output the exact decimal ...
Nice discussing. I am playing also with these routines, but I strugle with the in- and output. You wrote a nice routine wozf to show the numbers. Plese can you show the code for this litle program
I put together some 6502 code to output the exact decimal ...