ROM adventures (dev7rom)

Using, learning, programming and modding the Gigatron and anything related.
Forum rules
Be nice. No drama.
lb3361
Posts: 399
Joined: 17 Feb 2021, 23:07

Re: ROM adventures (dev7rom)

Post by lb3361 »

Correct. I have fixed the doc.

Note that, as of today, EXBA is only used in the microkernel of the multithreading example
https://github.com/lb3361/gigatron-lcc/ ... ff/threads

The callable functions are in threads.h and the kernel in threads.s.
Phibrizzo
Posts: 100
Joined: 09 Nov 2022, 22:46

Re: ROM adventures (dev7rom)

Post by Phibrizzo »

Can You check MOVW (opcode $BC) instruction?
Propably it working bad. I chceked on latest dev7.rom of ROM file.
lb3361
Posts: 399
Joined: 17 Feb 2021, 23:07

Re: ROM adventures (dev7rom)

Post by lb3361 »

Documentation error again :-(. The opcode is $bb.

In general, the opcode information in interface-dev.json is the most reliable because this is the source of truth for the c compiler and because the rom compilation process checks that it matches the labels in the rom source. That said, I am happy to fix these embarrassing documentation errors.

MOVW is an instructions that seems very simple but is hard to implement on the gigatron. I am not happy that it takes 36 cycles. On the other hand, it saves one byte relative to LDW+STW and sometimes even more because vAC is preserved.
Post Reply