Search found 364 matches

by lb3361
08 Feb 2022, 19:39
Forum: Hardware and software hacking
Topic: Some of my Gigatron LCC programs
Replies: 3
Views: 1092

Re: Some of my Gigatron LCC programs

Yep. utoa breaks for small bases like base 2. /* Functions to convert integers to strings. The buffer should be eight bytes long for ints and sixteen bytes for longs. Radix should be in range 2 to 36. Note that the return value is not usually equal to buffer because the digits are generated backward...
by lb3361
07 Feb 2022, 00:57
Forum: Hardware and software hacking
Topic: Gigatron 512k and more
Replies: 36
Views: 15186

Re: Gigatron 512k and more

Well, this board seems to be a good way to realize ideas that had been floating on this forum for years. The surprise is that many of these ideas can be realized by taping the pins of just two ICs: the memory and the output register. The board logic has a complexity that is comparable to the Gigatro...
by lb3361
05 Feb 2022, 12:04
Forum: Hardware and software hacking
Topic: LCC for the Gigatron. Take two.
Replies: 106
Views: 46446

Re: LCC for the Gigatron. Take two.

You can include <gigatron/sys.h> and access all the public variables defined by the ROM such as buttonState for instance. You can also call many of the SYS calls such as those that draw sprites, etc. What it lacks are libraries that make this easier.
by lb3361
02 Feb 2022, 13:49
Forum: Hardware and software hacking
Topic: Gigatron 512k and more
Replies: 36
Views: 15186

Re: Gigatron 512k and more

Very impressive ! Where do you capture the banking information (address 4d)? Is it done somewhere in the libraries or directly by the CLPD? I am not sure what you mean by "capturing the banking information" and in which context. Update : Just realized that address 4d is the "bank&quo...
by lb3361
01 Feb 2022, 22:43
Forum: Hardware and software hacking
Topic: LCC for the Gigatron. Take two.
Replies: 106
Views: 46446

Re: LCC for the Gigatron. Take two.

Two more remarks: I believe that it would be better to consolidate the cprintf calls that are very similar. Otherwise you need to code many strings that are almost identical. GLCC ints are only 16 bits long, that is 0 to 65535. To represent a 500000 jackpot you need to use "long int". The ...
by lb3361
01 Feb 2022, 11:25
Forum: Hardware and software hacking
Topic: LCC for the Gigatron. Take two.
Replies: 106
Views: 46446

Re: LCC for the Gigatron. Take two.

Recent compiler versions have "cprintf" in "console.h", which is far better than "printf". It bypasses stdio like "console_print" but can print numbers, etc. However, if you use scanf, you still bring stdio in your program. To read an integer, you can instead ...
by lb3361
31 Jan 2022, 14:48
Forum: Hardware and software hacking
Topic: Gigatron 512k and more
Replies: 36
Views: 15186

Re: Gigatron 512k and more

High resolution Mandelbrot This is a rewritten version of the Mandelbrot program in 320x240 resolution. I had to change the fixed point format to have 8 bits of fractional part because one cannot otherwise separate the pixels for the zoomed displays. Although it has been rewritten in vCPU + C https...
by lb3361
30 Jan 2022, 02:37
Forum: Hardware and software hacking
Topic: how to burn in a 27c1024 EPROM a single .gt1 file
Replies: 12
Views: 2721

Re: how to burn in a 27c1024 EPROM a single .gt1 file

- I cannot run "git-describe --tags", would like to know where to find in the gigatron-lcc repository (in some place in the web page or in the files inside the file gigatron-lcc-master.zip) the string GLCC_RELEASE_1.3-3-gf8c3d76 (example) Once I know the string for the latest gigatron-lcc...
by lb3361
28 Jan 2022, 21:50
Forum: Hardware and software hacking
Topic: Gigatron 512k and more
Replies: 36
Views: 15186

Re: Gigatron 512k and more

New native instructions I did not realize this was possible until a couple day ago when I finally found the time to fix my flawed extended memory banking scheme (see https://forum.gigatron.io/viewtopic.php?p=2838#p2838 ). This fix required lots of changes: the extended ctrl codes, the verilog, the ...
by lb3361
26 Jan 2022, 17:44
Forum: Hardware and software hacking
Topic: how to burn in a 27c1024 EPROM a single .gt1 file
Replies: 12
Views: 2721

Re: how to burn in a 27c1024 EPROM a single .gt1 file

The glcc c compiler does work with roms v3, v4, v5a (does existst v5?), what are rom versions ROMvX0 and romAT67x? romAT67x is something that shouldn't exist, I don't know what it is, it has nothing to do with me. GLCC only compiles programs for ROMv4 (with option -rom=v4), ROMv5a (with option -rom...