Search found 360 matches

by lb3361
13 Nov 2023, 22:58
Forum: Hardware and software hacking
Topic: Command SAVE in MSBASIC
Replies: 3
Views: 1764

Re: Command SAVE in MSBASIC

Alas, Hans61 reports some issues at LOAD time with his PluggyReloaded. When loading, Babelfish must be careful not to send the characters too fast otherwise MSBASIC cannot follow. This is a tricky balance. Or maybe this is something else.
by lb3361
13 Nov 2023, 10:44
Forum: Hardware and software hacking
Topic: Time for a contest? Simplest maze-like printing..
Replies: 21
Views: 6524

Re: Time for a contest? Simplest maze-like printing..

Nightly idea using inline assembly in GCL and trashing all memory above $800. One can still save 5 bytes by giving up on SYS_Random... maze4.gt1 gcl0x [ \SYS_Random_34 _sysFn= [do 34!! $f8& \sysArgs4. $7, $78& \sysArgs5. if=0loop] \SYS_VDrawBits_134 _sysFn= $3f01 _sysArgs0= b= x 2& 1- x=...
by lb3361
13 Nov 2023, 03:06
Forum: Hardware and software hacking
Topic: Command SAVE in MSBASIC
Replies: 3
Views: 1764

Command SAVE in MSBASIC

I was playing with the native code that pulses the VGA sync to speak to Babelfish, looking for some good tests. Curiously the SAVE command in TinyBasic works, but the SAVE command MSBASIC just hangs. It turns out that this has nothing to do with my own experiments. This has been described in issue #...
by lb3361
13 Nov 2023, 00:07
Forum: Hardware and software hacking
Topic: Time for a contest? Simplest maze-like printing..
Replies: 21
Views: 6524

Re: Time for a contest? Simplest maze-like printing..

It is shorter but less effective. You're right! I tried to be too smart when sampling addresses in a single 16 bits quantity. This new version is almost like your code except for using SYS_Random to shuffle the entropy on each try. That cost me five bytes to setup. Somehow I save two bytes in the f...
by lb3361
11 Nov 2023, 18:13
Forum: Hardware and software hacking
Topic: Time for a contest? Simplest maze-like printing..
Replies: 21
Views: 6524

Re: Time for a contest? Simplest maze-like printing..

A different effect, without scroll, 88 bytes. maze2.gcl maze2.gt1 gcl0x $78f8 mask= [do \SYS_Random_34 _sysFn= [do [do 34!! mask& _sysArgs4= \sysArgs4, 160- if>=0loop] \sysArgs5, 8- if<0loop ] 1 x= 34!! [if<0 -1 x= _sysArgs4 7+ _sysArgs4=] \SYS_VDrawBits_134 _sysFn= $3f00 _sysArgs0= 1 [do \sysAr...
by lb3361
11 Nov 2023, 15:52
Forum: Hardware and software hacking
Topic: Time for a contest? Simplest maze-like printing..
Replies: 21
Views: 6524

Re: Time for a contest? Simplest maze-like printing..

Lots of neat tricks in Phibrizzo's code.
by lb3361
09 Nov 2023, 00:09
Forum: Hardware and software hacking
Topic: Time for a contest? Simplest maze-like printing..
Replies: 21
Views: 6524

Re: Time for a contest? Simplest maze-like printing..

GCL version of the same. ROMv5a and above only because it uses opcode CALLI. Only 188 bytes. I don't think GLCC will ever match this. maze.gcl maze.gt1 gcl0x 160 addr= [do <addr, 160- [if=0 \scroll!] \SYS_Random_34 _sysFn= 34!! [if<0 \print_fslash! else \print_bslash!] loop] { Print a forward slash ...
by lb3361
08 Nov 2023, 22:49
Forum: Hardware and software hacking
Topic: Time for a contest? Simplest maze-like printing..
Replies: 21
Views: 6524

Re: Time for a contest? Simplest maze-like printing..

This one prints slashes/backslashes in 8x8 squares, avoiding the console and the default font. Writing the same in GCL or GASM would probably cut the gt1 size by a factor of two or so. Compile with glcc -map=32k -rom=v5a TSTmaze.c -o TSTmaze.gt1 --no-runtime-bss-initialization TSTmaze.gt1 TSTmaze.c ...
by lb3361
06 Nov 2023, 22:48
Forum: Hardware and software hacking
Topic: ROM adventures (dev7rom)
Replies: 32
Views: 9365

Re: ROM adventures (dev7rom)

Very intresting results. Thanks for job you have done. Is the DEV7 ROM and DEV ROM same? They're different: DEVROM in https://github.com/kervinck/gigatron-rom is functionally identical to ROMv6. DEV7ROM is in https://github.com/lb3361/gigatron-rom as a dozen commits ahead of DEVROM. The main versio...
by lb3361
05 Nov 2023, 23:25
Forum: Hardware and software hacking
Topic: Fire! [test]
Replies: 1
Views: 1040

Re: Fire! [test]

A tour de force!