Search found 367 matches

by lb3361
18 Jan 2024, 23:41
Forum: Hardware and software hacking
Topic: ROM adventures (dev7rom)
Replies: 32
Views: 9978

Re: ROM adventures (dev7rom)

  Virtual interrupts Virtual interrupts (vIRQ), introduced in ROMv5a. Variable "frameCount" (0x0e) is incremented sixty times per second, at the beginning of each vertical blank interval. When it reaches zero, the Gigatron checks the contents of "vIRQ" (0x1f6-0x1f7). If this is a...
by lb3361
12 Jan 2024, 04:25
Forum: Hardware and software hacking
Topic: Arecibo message as simple art demo
Replies: 9
Views: 800

Re: Arecibo message as simple art demo

With 8 pixels per byte, each row is encoded on three bytes, meaning 73 * 3 = 219 bytes. There is a free bit in each row. So each row could be composed of a first byte in range 0-127 (7 pixels) and two bytes in range 0-255 (8 pixels each). One could code special situations by having a first byte in r...
by lb3361
11 Jan 2024, 01:47
Forum: Hardware and software hacking
Topic: Arecibo message as simple art demo
Replies: 9
Views: 800

Re: Arecibo message as simple art demo

The cheapest way to clear the screen is: _console_clear((char*)0x800, 0x00,120); /* 0x00 is the background color */ This calls SYS_SetMemory 120 times, one for each row of the screen. No dependencies. You can add option --no-runtime-bss to save another 100 bytes or so. Instead of "SYS_Random() ...
by lb3361
11 Jan 2024, 00:51
Forum: Hardware and software hacking
Topic: Gigatron 128k emulator online.
Replies: 10
Views: 1383

Re: Gigatron 128k emulator online.

petersieg wrote: 09 Jan 2024, 12:46 (Your solution does not work under python 3.6 (import http gives error) and old Mac OS Lion - so I stick with my solution for my local copy)
It seems indeed that support for the directory argument (-d_ was added to http.server in version 3.7. Sigh.
by lb3361
09 Jan 2024, 03:07
Forum: Hardware and software hacking
Topic: Gigatron 128k emulator online.
Replies: 10
Views: 1383

Re: Gigatron 128k emulator online.

I changed to python's http server. In fact I wrote a subclass in file 'http-server.py' that disables the caches and serves pre-compressed files when available. See https://github.com/lb3361/gigatron-rom/tree/master/Utils/runjs From the gigatron rom directory, you can type : make runjs DEV=dev128k7.r...
by lb3361
08 Jan 2024, 21:11
Forum: Hardware and software hacking
Topic: Gigatron 128k emulator online.
Replies: 10
Views: 1383

Re: Gigatron 128k emulator online.

I tried the python solution. In fact you have convinced me that I should change the repository to use python when you write "make runjs".
However the online version benefits a lot from compression the binary files (gigatron.rom and sd.vhd), so it will have to be different.
by lb3361
08 Jan 2024, 14:04
Forum: Hardware and software hacking
Topic: Gigatron 128k emulator online.
Replies: 10
Views: 1383

Re: Gigatron 128k emulator online.

You might have to ask for ‘gigatron.rom.gz’ and ‘sd.vhd.gz’ because the web server is configured to use precompressed files if available. Or just go to the source (see initial post) https://github.com/lb3361/gigatron-rom/tree/master/Utils/runjs As for note, doing brew install ‘node’ and ‘http-server...
by lb3361
05 Jan 2024, 02:05
Forum: Hardware and software hacking
Topic: LCC for the Gigatron. Take two.
Replies: 106
Views: 46910

Re: LCC for the Gigatron. Take two.

And some small changes are required (all just declare outside loops): I believe you just have to use the option gcc --std=c99. At that time the default was -std=gnu89. That was changed in gcc5. See https://gcc.gnu.org/onlinedocs/gcc-4.2.4/gcc/C-Dialect-Options.html#C-Dialect-Options On the other ha...
by lb3361
04 Jan 2024, 18:22
Forum: Hardware and software hacking
Topic: GT1 compression
Replies: 6
Views: 739

Re: GT1 compression

I also like to have a ROM, that containts more nice little games (Tetronis, Bricks, Snake, ...) and that is able to load uncompressed and compressed gt1 files. Looking forward to such a new ROM(8) somewhere down the new year ;) SYS_Exec in the current dev7 rom already can load either compressed or ...
by lb3361
04 Jan 2024, 02:33
Forum: Hardware and software hacking
Topic: GT1 compression
Replies: 6
Views: 739

Re: GT1 compression

Following on this work. The Gigatron ROM does not just contain GT1 files but also images and basic programs using ad-hoc schemes to encode them economically and load them as needed. Instead, we can encode this data as GT1 files, compress them as GT1Z files, and load them using SYS_Exec. For instance...