Search found 2056 matches
- Fri Mar 27, 2026 1:58 am
- Forum: Programming
- Topic: A contest to reduce code size
- Replies: 26
- Views: 1067
Re: A contest to reduce code size
It's not clear to me what the difference is between INT and CINT, but it may be subtle.
- Tue Mar 24, 2026 3:05 am
- Forum: Programming
- Topic: A contest to reduce code size
- Replies: 26
- Views: 1067
Re: A contest to reduce code size
In TRS-80 Level 2 BASIC it's called FIX, for an additional byte of savings.
- Tue Mar 17, 2026 1:36 pm
- Forum: Programming
- Topic: A contest to reduce code size
- Replies: 26
- Views: 1067
Re: A contest to reduce code size
I have done it for Scot and Kevin and Charlie here in the past, but the optimizations I found for them were very "local", and I think for me to be able to tackle a job worthy of an "honorable mention" would require a level of attention that I can't provide at the moment, especially since I don't do ...
- Sun Mar 08, 2026 6:18 pm
- Forum: Programming
- Topic: Announcing VC83 BASIC, a BASIC interpreter for the 6502
- Replies: 21
- Views: 1607
Re: Announcing VC83 BASIC, a BASIC interpreter for the 6502
Please forgive me for not digging into this myself, but what style of floats are you using? MS, IEEE, Woz, BCD, custom? I want to design something to fill the void between the tiny BASICs and the 8K BASICs, and I think a custom 24-bit float should do the trick, along with HP-style strings and a few ...
- Wed Mar 04, 2026 2:58 am
- Forum: Programming
- Topic: Announcing VC83 BASIC, a BASIC interpreter for the 6502
- Replies: 21
- Views: 1607
Re: Announcing VC83 BASIC, a BASIC interpreter for the 6502
jgharston wrote:
Your BASIC shouldn't target the hardware. Your operating interface should target the hardware.
- Wed Feb 25, 2026 2:29 pm
- Forum: Programming
- Topic: Buffer indirection
- Replies: 18
- Views: 1132
Re: Buffer indirection
Unless you're a brutal byte-miser, anything you can do to speed up the inner-most loop is going to pay the best dividends.
- Thu Feb 05, 2026 2:22 am
- Forum: Programming
- Topic: Good 65816 monitor?
- Replies: 38
- Views: 3700
Re: Good 65816 monitor?
fachat wrote:
You may know this behaviour from machine language monitors on the C64, where it even works upward, but that is without mode bits.... (re: ******) ....
- Sun Nov 16, 2025 5:51 am
- Forum: Programming
- Topic: Early draft of DWARF standard
- Replies: 7
- Views: 1310
Re: Early draft of DWARF standard
rudla.kudla wrote:
... so there are hypothetically 255 of two byte registers ...
- Fri Oct 24, 2025 1:46 pm
- Forum: Programming
- Topic: Which assembler could I possibly use ?
- Replies: 120
- Views: 25548
- Sun Oct 19, 2025 3:26 pm
- Forum: Programming
- Topic: 16-bit/32-bit 65C816 random number generator
- Replies: 37
- Views: 3055
Re: 16-bit/32-bit 65C816 random number generator
Yes. "Random" and "Unique" have a lot of similarities, but "Unique" or even "Consecutive" could be the slightly better choice for this use case, IMHO.
- Sat Oct 18, 2025 5:35 am
- Forum: Programming
- Topic: 16-bit/32-bit 65C816 random number generator
- Replies: 37
- Views: 3055
Re: 16-bit/32-bit 65C816 random number generator
If you have an uptime counter with sufficient resolution, can't you just make that part of the temporary file name and not even worry about generating pseudo-random characters?
- Wed Oct 15, 2025 5:04 am
- Forum: Programming
- Topic: Random-number generation
- Replies: 246
- Views: 79028
Re: Random-number generation
Thank you, Arlet! At a net cost of ten bytes, VTLC02 now has a pseudo-random number generator that never gets stuck in a short cycle, and overall performance is slightly improved. I can't say that I fully understand it, but it acts like a pre-shuffled deck of 65536 unique cards ... the VTL program ...
- Sat Oct 11, 2025 5:53 pm
- Forum: Programming
- Topic: READ, DATA & RESTORE in my TinyBasic ...
- Replies: 23
- Views: 2313
Re: READ, DATA & RESTORE in my TinyBasic ...
In VTL-2, this might be done like so, with its analog for MS BASIC's "INKEY$" (or perhaps more accurately, "GET"): 10 ?="OK? (Y/N)";
20 A=$) snag and echo a keypress
30 #=A=89*50) ascii "Y"
35 #=A=78*60) ascii "N"
40 $=8) erase invalid entry
45 #=20) and try again
50 ?="ES") auto-complete the ...
20 A=$) snag and echo a keypress
30 #=A=89*50) ascii "Y"
35 #=A=78*60) ascii "N"
40 $=8) erase invalid entry
45 #=20) and try again
50 ?="ES") auto-complete the ...
- Wed Oct 08, 2025 3:13 am
- Forum: Programming
- Topic: Benchmarking: VTL-2 vs. GIBL (TinyBasic)
- Replies: 2
- Views: 774
Re: Benchmarking: VTL-2 vs. GIBL (TinyBasic)
I did think that the multiplication that you need to use in VTL-2 for every loop might have slowed it down, but it didn't appear to. (It's also an unsigned multiply). I spent a few precious code bytes to make 0*X and 1*X faster in VTL02C, knowing that it would have a favorable cost-to-benefit ratio ...
- Sat Oct 04, 2025 5:24 am
- Forum: Programming
- Topic: VTL-2 ... Porting, Using ...
- Replies: 2
- Views: 979
Re: VTL-2 ... Porting, Using ...
It's verging on the esoteric, but still very usable. Usable today for anything other than an historical curiosity? Mabe, maybe not. Same for TinyBasic I guess. But who knows.
Bravo, Gordon! The original VTL-2 was designed for the Altair 680b, which was the red-headed foster brother of the much ...
Bravo, Gordon! The original VTL-2 was designed for the Altair 680b, which was the red-headed foster brother of the much ...