Search found 367 matches

by lb3361
13 Aug 2023, 07:04
Forum: Hardware and software hacking
Topic: glcc: minilisp - w-i-p
Replies: 13
Views: 3056

Re: glcc: minilisp - w-i-p

The included gt1 doesnt run? New compiled = works fine in romv5a and 64k ;-) My mistake. These were the dev7 versions. The lisp850sim.gt1 one is intended to run in the glcc test simulator gtsim. This is convenient for debugging. ./build/gtsim -rom gigatron/roms/dev7.rom ~/Downloads/lisp850/lisp850s...
by lb3361
11 Aug 2023, 18:24
Forum: Hardware and software hacking
Topic: glcc: minilisp - w-i-p
Replies: 13
Views: 3056

Re: glcc: minilisp - w-i-p

And here is another one which represents the cells with longs. The tag is in the high four bits of the long. No floating point here. Yet it is closer to the original than the tagged version. This is a bit faster because it only uses long emulation and avoids structure copies. Still much better under...
by lb3361
11 Aug 2023, 17:05
Forum: Hardware and software hacking
Topic: glcc: minilisp - w-i-p
Replies: 13
Views: 3056

Re: glcc: minilisp - w-i-p

Minilisp is not hopeless but one has to change it from NaN boxing to some variant of tagged format. typedef struct { double d; char t; } cell_t; #define I unsigned long #define L cell_t #define D(x) ((x).d) /* This macro is new and needs to be added in the right places everywhere */ #define T(x) ((x...
by lb3361
11 Aug 2023, 09:22
Forum: Hardware and software hacking
Topic: glcc: minilisp - w-i-p
Replies: 13
Views: 3056

Re: glcc: minilisp - w-i-p

That's because the Gigatron double format is not IEEE754 but period correct Microsoft floating point (5 bytes). There are no NaNs, so NaN boxing won't work...
by lb3361
08 Aug 2023, 07:20
Forum: Hardware and software hacking
Topic: glcc: some simple c source as play ground
Replies: 28
Views: 3552

Re: glcc: some simple c source as play ground

One of my GLCC tests is now a rewritten variant of snake.
I also have a good conio emulation for unix (in the unix directory).
Just "make snake" for unix, "make TSTsnake.gt1" for gigatron.
- Leon

https://github.com/lb3361/gigatron-lcc/ ... tuff/conio
by lb3361
02 Aug 2023, 09:30
Forum: Hardware and software hacking
Topic: LCC for the Gigatron. Take two.
Replies: 106
Views: 46919

Re: LCC for the Gigatron. Take two.

I made several improvements to GLCC after petersieg's thread ( https://forum.gigatron.io/viewtopic.php?t=431 ). They currently are in the head of the GLCC repository and will appear in the next release after a bit of testing time. Conio interface I added an include file <conio.h> https://github.com/...
by lb3361
02 Aug 2023, 06:47
Forum: Hardware and software hacking
Topic: glcc: some simple c source as play ground
Replies: 28
Views: 3552

Re: glcc: some simple c source as play ground

petersieg wrote: 01 Aug 2023, 20:26 My mistake. You are right. Youre version works.
I did not understand the lastkey logic. But I realize now that my version stops the snake whenever you press a key that is not an arrow.
Is this why lastkey was necessary?
by lb3361
01 Aug 2023, 19:33
Forum: Hardware and software hacking
Topic: glcc: some simple c source as play ground
Replies: 28
Views: 3552

Re: glcc: some simple c source as play ground

My version above was working in gtemuAT67. But you have to make sure the keyboard emulation is in the proper mode. When you type CTRL+K, you cycle through three modes named "Kbd", "PS2", and "HwKbd". The mode name is displayed at the bottom of the right panel. The "...
by lb3361
31 Jul 2023, 21:43
Forum: Hardware and software hacking
Topic: glcc: some simple c source as play ground
Replies: 28
Views: 3552

Re: glcc: some simple c source as play ground

Here is a working one. It uses the controller keys (arrows on the keyboard). The keyboard was unresponsive because of the strange way the keyboard is interfaced to the Gigatron. Whenever a key is pressed, the serialRaw variablecontains the ascii code for only about 60 milliseconds, regardless of whe...
by lb3361
31 Jul 2023, 12:39
Forum: Hardware and software hacking
Topic: glcc: some simple c source as play ground
Replies: 28
Views: 3552

Re: glcc: some simple c source as play ground

Whatever documentation exists is in the comments of the include file, as in https://github.com/lb3361/gigatron-lcc/blob/master/include/gigatron/gigatron/console.h . After reading your thread, I realized that I made a mistake by not sticking to the more-or-less standard conio.h interface. So I just a...