Search found 77 matches

by lb3361
17 Sep 2021, 12:28
Forum: Hardware and software hacking
Topic: LCC for the Gigatron. Take two.
Replies: 23
Views: 1223

Re: LCC for the Gigatron. Take two.

Now that GLCC is updated recently, how can I see the version of my installed files? I am using virtual Ubuntu linux as enviroment. Ooops. Good question. I should have a version string and a change log somewhere :-) In the mean time you can try `glcc -v` to know when the code was compiled. $ glcc -v...
by lb3361
16 Sep 2021, 01:16
Forum: Hardware and software hacking
Topic: ascjulia.c and ascbrot.c
Replies: 13
Views: 367

Re: ascjulia.c and ascbrot.c

Using the console directly instead of putchar() avoids the buffering effect and allows you to change colors and x/y positions. ... /* Unchanged code above */ if(x+y < 4) { /* Why x+y < 4 btw? */ return i; } return 1; } #include <gigatron/console.h> void main(void) { int x, y, data; float sx, sy; for...
by lb3361
14 Sep 2021, 18:16
Forum: Kit assembly gallery
Topic: My Gigatron build
Replies: 7
Views: 494

Re: My Gigatron build

"DIY ladder DAC" :-)
by lb3361
13 Sep 2021, 11:51
Forum: Hardware and software hacking
Topic: gfxbrot.c and gfxjulia.c
Replies: 8
Views: 251

Re: gfxbrot.c and gfxjulia.c

The graphics version has a much smaller gt1 because it doesn't need to link stdio or console support.
by lb3361
12 Sep 2021, 11:11
Forum: Hardware and software hacking
Topic: gfxbrot.c and gfxjulia.c
Replies: 8
Views: 251

Re: gfxbrot.c and gfxjulia.c

Cool.

I am afraid floating point on the Gigatron is not very fast. This is why official 'Mandelbrot' program uses fixed point. But that makes it very hard to follow. Anyway, thanks for giving such a good test to my floating point runtime.
by lb3361
12 Sep 2021, 03:03
Forum: Hardware and software hacking
Topic: ascjulia.c and ascbrot.c
Replies: 13
Views: 367

Re: ascii-julia.c

Now with graphics? #include <gigatron/console.h> void drawPixel(int x, int y, int color) { screenMemory[y][x] = color; } Note: the code above assumes the screen has not been scrolled -- default videoTable. Otherwise you can include <gigatron/console.h> and call console_clear_screen(void) to reset it.
by lb3361
10 Sep 2021, 14:15
Forum: Hardware and software hacking
Topic: ascjulia.c and ascbrot.c
Replies: 13
Views: 367

Re: ascii-julia.c

Glcc by default compiles for romv5a. Command glcc -info tells you exactly what is selected. The runtime by default generates an exception on overflow. This is because the MS floating point format does not support nans or infinities. From your message it is not clear to me whether the floating except...
by lb3361
01 Sep 2021, 17:36
Forum: Hardware and software hacking
Topic: LCC for the Gigatron. Take two.
Replies: 23
Views: 1223

Re: LCC for the Gigatron. Take two.

Gigatron LCC for Windows Porting GLCC to Windows has several aspects. Besides compiling the GLCC executables for Windows and ensuring that invoking the command `glcc` or `glink` finds the correct version of Python, we also need to consider which supporting commands are available to a programmer wri...
by lb3361
29 Aug 2021, 09:50
Forum: Hardware and software hacking
Topic: Video Repeater
Replies: 20
Views: 1526

Re: Video Repeater

Hi Hans61, Spi is supported in ROM v5a through extension SYS_SpiExchangeBytes_v4_134 at https://github.com/kervinck/gigatron-rom/blob/master/Core/dev.asm.py#L3021 and its implementation at https://github.com/kervinck/gigatron-rom/blob/master/Core/dev.asm.py#L3660 . A good example of this happens whe...
by lb3361
28 Aug 2021, 12:30
Forum: Hardware and software hacking
Topic: Video Repeater
Replies: 20
Views: 1526

Re: Video Repeater

I believe there are two WozMons. The first one (roms v3 and v4) was a vCPU translation of the original 6502 code. There is no point trying to find 6502 opcodes as these roms didn't have the v6502. The second one is the original one that runs in the apple1 emulation using v6502 in rom v5a. As for usi...