Virgil Dupras
e31527f5ac
Add word ROT>
There are many situations where it can be useful. Worth it.
pirms 3 gadiem
Virgil Dupras
69bb34ce7b
Add tests for MOVE* words
pirms 3 gadiem
Virgil Dupras
c912158744
Run "all" tests under the 8086 emulator
pirms 3 gadiem
Virgil Dupras
efe4b13a4e
Move /emul to /emul/z80
I'm planning on adding other subfolders. 8086 for example...
pirms 3 gadiem
Virgil Dupras
c072096909
tests: run "generic" tests under all Collapse OS architectures
There's no reason to run them only under CVM.
pirms 3 gadiem
Virgil Dupras
91f79d1131
Move z80a from B200 to B5
The idea is to consider assemblers as "runtime" apps instead of
placing them in the "bootstrap" section of the blocks. These apps
will be used for much more than bootstrapping.
Moved its documentation to doc/asm.txt and made its code blocks
more compact.
pirms 3 gadiem
Virgil Dupras
7a5744a4c3
Remove BROWSE and CASE
With the Visual Editor, BROWSE is of dubious value. Even before that,
it was of dubious value. It's the only user of the CASE word, which
is also of dubious value: too complicated for its own good.
The CMD pattern used in VE is much better.
pirms 3 gadiem
Virgil Dupras
9aa3ae4c6b
Fix tests
pirms 3 gadiem
Virgil Dupras
4b1a49c8cc
fix broken tests
pirms 3 gadiem
Virgil Dupras
293a561ab2
Fix SDC tests
pirms 4 gadiem
Virgil Dupras
785b375028
tests: separate tests that need to run on z80 vs those that don't
pirms 4 gadiem
Virgil Dupras
b0258f5bba
Fix tests
pirms 4 gadiem
Virgil Dupras
3373f53997
tidy up blk and fix tests
pirms 4 gadiem
Virgil Dupras
86539d2a03
Fix tests
pirms 4 gadiem
Virgil Dupras
f605e2d85c
Give CASE's default branch access to its input value
ref #97
pirms 4 gadiem
Virgil Dupras
5219887ad7
sdc: implement _crc16 in z80
pirms 4 gadiem
Virgil Dupras
8d78ca9dac
tests: add test_sdc
The SD card driver is a bit too slow to be bearable. I'll write
_crc16 in z80 and see how it goes.
pirms 4 gadiem
Virgil Dupras
1bd191e86a
Move /emul/forth/* to /emul
Less noisy this way
pirms 4 gadiem
Virgil Dupras
5067d40e3b
Add CASE..OF words
pirms 4 gadiem
Virgil Dupras
22f132094a
Clarify signed-ness
And fix broken negative display in ".".
pirms 4 gadiem
Virgil Dupras
400f0ab0b0
boot: fix flagsToBC
Why did I ever think that using CM was a good idea? any comparison
with numbers more than 0x8000 apart would be wrong...
pirms 4 gadiem
Virgil Dupras
67d732c4be
cmp: add tests
pirms 4 gadiem
Virgil Dupras
9235fa9223
Add /tools/slatest
To update LATEST offset more easily. Will be useful for recipes.
pirms 4 gadiem
Virgil Dupras
6bf51ae57c
Forth reboot underway!
pirms 4 gadiem
Virgil Dupras
48078d9c9c
forth: Replace "SKIP?" with "(?br)"
There is an alternate git history where I continued the Forth-ification of
words, including "SKIP?", but that was a bad idea: because that word was
written by flow control immediates, I stepped into quicksands where stability
became necessary in z80c.fs and I couldn't gracefully get out of it.
I'm stepping back and take this opportunity to replace the shoddy SKIP? algo
with a more straightforward (?br) implementation.
(br) and (?br) will always stay in boot code where it's easier manage a stable
ABI.
pirms 4 gadiem
Virgil Dupras
af5a97243a
forth: implement "0b" number parsing
pirms 4 gadiem
Virgil Dupras
f0cbda1f2e
tests: add Forth tests
Modest first step
pirms 4 gadiem
Virgil Dupras
97dcad9b15
recipes/sms/kbd: use Collapse OS' AVR assembler
pirms 4 gadiem
Virgil Dupras
0f2b3aca24
zasm: allow zasm to omit its 3rd argument
A bug in rdWS made zasm error out when omiting its 3rd argument.
fixes #90
pirms 4 gadiem
Virgil Dupras
eed67c4768
tests/shell: bring back the static test.cfs
I had forgotten about that ordering thing: depending on the platform
cfspack doesn't read files in a directory in the same order.
pirms 4 gadiem
Virgil Dupras
097c677641
emul/zasm: use libcfs
This allows us to get rid of the zasm.sh wrapper.
pirms 4 gadiem
Virgil Dupras
72357fec86
Move "emul" folder to root
pirms 4 gadiem
Virgil Dupras
c5c6ef4c6c
Move "tests" folder to root
pirms 4 gadiem