Search found 368 matches
- 19 Feb 2024, 12:58
- Forum: Hardware and software hacking
- Topic: LCC for the Gigatron. Take two.
- Replies: 106
- Views: 54785
Re: LCC for the Gigatron. Take two.
Oh I see. I never realized one could download a zip. I was expecting users to "git clone". The makefile uses the git information to create the version file glccver.py in the build directory. If git is not detected, it creates one with "unknown-version" and this is what causes you...
- 18 Feb 2024, 23:23
- Forum: Hardware and software hacking
- Topic: LCC for the Gigatron. Take two.
- Replies: 106
- Views: 54785
Re: LCC for the Gigatron. Take two.
If you do not want to do make install and want to run glcc from the build directory, the cleanest solution is to create a directory $HOME/bin, make sure it is in your PATH, and have symlinks from there to the glcc executables in the build directory. For instance my bin directory contains this becaus...
- 18 Feb 2024, 13:58
- Forum: Hardware and software hacking
- Topic: Arecibo message as simple art demo
- Replies: 9
- Views: 1983
Re: Arecibo message as simple art demo
Just added binary constants to the compiler. I also added a map overlay "bare" to compile something that do not use libc at all and skip the overhead. Such programs have to do everything by hand. There is still some stack management overhead because C allows recursion. So to make a program...
- 17 Feb 2024, 13:11
- Forum: Hardware and software hacking
- Topic: Multitasking
- Replies: 2
- Views: 1412
Multitasking
In an attempt to improve the virtual interrupt system (the one that diverts the vCPU whenever frameCount wraps over), I wrote native instructions to save and restore the full vCPU context and arranged a way to have this done automatically when a virtual interrupt occurs. The rationale is explained i...
- 15 Feb 2024, 23:27
- Forum: Hardware and software hacking
- Topic: Arecibo message as simple art demo
- Replies: 9
- Views: 1983
Re: Arecibo message as simple art demo
It turns out that binary constants are not in the C standard!
Yet GCC implements them and C++ requires them.
That's easy to add.
Yet GCC implements them and C++ requires them.
That's easy to add.
- 05 Feb 2024, 23:43
- Forum: Hardware and software hacking
- Topic: Project idea: Use real floppy disk ;-)
- Replies: 3
- Views: 1562
Re: Project idea: Use real floppy disk ;-)
It seems that there is a promising path using the Adafruit floppy interface https://www.adafruit.com/product/5679 and a Raspberry Pico because they also provide a nice controller library https://github.com/adafruit/Adafruit_Floppy/ with read support (write support seems to be under development). One...
- 31 Jan 2024, 15:20
- Forum: Hardware and software hacking
- Topic: Project idea: Use real floppy disk ;-)
- Replies: 3
- Views: 1562
Re: Project idea: Use real floppy disk ;-)
If I had the time, I would use the RP2040 version and program it to act as a SPI device obeying a subset of the SD card protocol. Then the SPI browser would work out of the box. As for writing to the floppy, I always meant to add an OS layer and writing support to the SPI SD interface. The idea is t...
- 30 Jan 2024, 00:07
- Forum: Hardware and software hacking
- Topic: ROM adventures (dev7rom)
- Replies: 32
- Views: 13733
Re: ROM adventures (dev7rom)
Why no DEC instruction? Having a DEC(b) instruction that runs as fast as INC(b) would take four precious bytes in page 3. Having a DECV(v) that runs as fast as INCV(v) would take two precious bytes in page 3. I have only four free bytes left in page 3 which I believe are best kept to organize a new ...
- 25 Jan 2024, 23:17
- Forum: Hardware and software hacking
- Topic: Nice, clean, little SDL2 emlator
- Replies: 4
- Views: 1683
Re: Nice, clean, little SDL2 emlator
You can use program gt1dump (in the Utils directory) to look at GT1 files.
Also: only the first segment can have hiAddress=0. Otherwise it means that the GT1 file is ending with an exec address.
See function. GMem::load() in https://github.com/lb3361/gigatron-rom/ ... z/gt1z.cpp
Also: only the first segment can have hiAddress=0. Otherwise it means that the GT1 file is ending with an exec address.
See function. GMem::load() in https://github.com/lb3361/gigatron-rom/ ... z/gt1z.cpp
- 23 Jan 2024, 23:12
- Forum: Hardware and software hacking
- Topic: ROM adventures (dev7rom)
- Replies: 32
- Views: 13733
Re: ROM adventures (dev7rom)
LUP is an instruction whose meaning has been hideously perverted by the return-from-interrupt mechanismPhibrizzo wrote: ↑23 Jan 2024, 18:44 I was based on https://github.com/lb3361/gigatron-rom/ ... ummary.txt