Commit Graph

81 Commits

Author SHA1 Message Date
f9447d22d1 Add favicon 2026-03-02 16:10:54 +00:00
8ed8bbad3e Set output rows based on window size 2026-03-02 16:10:54 +00:00
7f4d900688 Fix EMIT-DIGIT 2026-03-02 16:10:54 +00:00
54be0a8c0e Fix output width at 80 chars and remove trailing spaces 2026-03-02 16:10:54 +00:00
832ce55108 Implement basic scrolling in emu.js 2026-03-02 16:10:54 +00:00
259aa730f7 Add copyright and license message to the banner 2026-03-02 16:10:54 +00:00
50f2f240fa Shorten SYSREADY comment in prelude 2026-03-01 20:26:28 +00:00
ee4c0d1d8c Add a better word-not-found handler 2026-03-01 19:52:52 +00:00
acaf198fae Implement CONSTANT, VARIABLE, VALUE and TO 2026-03-01 19:52:43 +00:00
1a9702ea5c Implement some utility words 2026-03-01 19:51:59 +00:00
5d704d3bde Print loading indicators during prelude 2026-03-01 19:51:47 +00:00
047d09260c Add wip.sh ASCII art banner 2026-03-01 19:51:47 +00:00
fac6c4d3b8 Implement TYPE and ." 2026-03-01 19:51:47 +00:00
a9fd395a94 Implement . 2026-03-01 19:51:47 +00:00
922a0e6e31 Implement block comments 2026-03-01 19:51:47 +00:00
d60708645d Implement recursive calls 2026-03-01 19:51:47 +00:00
8785c01f9e Implement loops 2026-03-01 19:51:47 +00:00
53d3a308cd Implement conditionals 2026-03-01 19:51:47 +00:00
fde6429d4f Add line comments and peripheral reg constants to prelude 2026-03-01 19:51:47 +00:00
c06ef248b7 Implement prelude-loading mechanism 2026-03-01 19:51:47 +00:00
f6a24ee3cf Fix >CFA returning incorrect value on hidden words 2026-03-01 19:51:47 +00:00
b372ae3d5f Rename DOCONST to DOVAL 2026-03-01 19:51:47 +00:00
9f1be9ad2f Add hook mechanism for handling word not found 2026-03-01 13:55:19 +00:00
1ebe07b863 Fix value of LIT-CFA 2026-02-28 20:51:56 +00:00
1922a65108 Fix incorrect CFA in , compilation 2026-02-28 20:51:56 +00:00
3ce063187b Fix 2DUP 2026-02-28 20:51:56 +00:00
643185bfd4 Update LATEST and HERE 2026-02-28 20:51:56 +00:00
0ee6d01592 Define : and ; 2026-02-28 20:51:56 +00:00
1321a0e5a9 Define CREATE 2026-02-28 20:00:22 +00:00
43b6a6978f Define IMMEDIATE 2026-02-28 20:00:22 +00:00
7c9e99d666 Define HIDDEN 2026-02-28 20:00:22 +00:00
0645640f20 Define ALIGN 2026-02-28 20:00:22 +00:00
f314234078 Define [ and ] 2026-02-28 20:00:22 +00:00
c0b2c7d7d2 Handle HIDDEN flag 2026-02-28 20:00:22 +00:00
66188f6984 Add a halt mechanism 2026-02-28 20:00:22 +00:00
b06f32bbe3 Define some additional memory codewords 2026-02-28 20:00:22 +00:00
95d82a91c2 Indent loops, ifs etc 2026-02-28 13:10:26 +00:00
aceeebd3ff Move definition of $execute function 2026-02-28 13:09:22 +00:00
fa5a6dbb1d Add EXECUTE 2026-02-28 02:06:51 +00:00
093e4188bd Fix wrong branch offset in FIND 2026-02-28 01:36:27 +00:00
973eba9f0a Fix NUMBER?
I wasn't able to keep the length the same so had to update the
addresses of , IMMEDIATE? INTERPRET QUIT and the cold start (and
therefore also the values of LATEST and HERE).
2026-02-27 22:56:26 +00:00
4f50321c26 Fix FIND 2026-02-27 22:40:15 +00:00
c57792f7c7 Fix 0<> address in WORD 2026-02-27 19:54:35 +00:00
6474c2f227 Logically flip SPACE? to NSPACE
WORD was using it like this, and it's easier to fix it this way rather
than insert an INVERT into WORD.
2026-02-27 19:52:44 +00:00
42a9c5db08 Fix 0BRANCH function table entry 2026-02-27 19:50:50 +00:00
83022925f7 Fix bugs from round 1 of debugging
There were several issues I ran into immediately:

- The cold start was pointing to the dictionary entry of QUIT instead
  of the CFA
- The RSP needed to be set before calling QUIT, as DOCOL uses the
  return stack
- I'd forgotten LITs before values in a couple of places
- I'd not accounted for LITs in several branch offsets
- A few dictionary links were wrong
2026-02-27 18:35:17 +00:00
74ff0b037c Set values of HERE and LATEST 2026-02-27 16:20:36 +00:00
ca6ac0f9bf Implement cold start 2026-02-27 16:20:36 +00:00
2fafd02e28 Compile QUIT 2026-02-27 16:20:36 +00:00
bf65c7470a Compile INTERPRET 2026-02-27 16:20:36 +00:00