link2xt
79da1db90e
tools: mark local C functions as static ( #120 )
2020-06-16 18:58:00 -05:00
link2xt
472331b450
Check spelling ( #121 )
2020-06-16 18:57:31 -05:00
link2xt
6a09910dfc
BROWSE: ignore invalid digits ( #123 )
...
Documentation in block 100 says a number followed by a space or return
lists the contents of the block. However, typing any other character
does this too, because _pdacc returns -1 in this case.
This is annoying because typing "n" instead of "N" immediately after
jumping to some block was bringing you to block 0. Now "n" is ignored
instead.
This commit changes the condition for printing to explicitly check for
the value of 1, which means whitespace according to _pdacc documentation
in block 355.
2020-06-16 18:55:26 -05:00
link2xt
f1a225ef3d
Fix unreadable sentence in block 031. ( #122 )
...
This clearly has some words missing.
2020-06-16 18:28:06 -05:00
Virgil Dupras
16d6a0b377
pcat: begin implementing compiledWord/next
2020-06-16 19:05:36 -04:00
Virgil Dupras
feeedcc55c
z80: small optimization in execute
...
I had more ambitious goals, but I backed out of it: not worth it.
This small optimization is an easy picking though.
2020-06-16 16:37:21 -04:00
Virgil Dupras
dabbd6c253
8086asm: add support for modrm 8-bit displacement
2020-06-15 06:52:47 -04:00
Virgil Dupras
d8d2e05eb2
pcat: make find compare strings
...
find is the biggest chunk of logic of the boot code. The 8086 version
is significantly terser than the z80 one. REP/CMPS helps...
2020-06-15 06:23:19 -04:00
Virgil Dupras
8c452f5add
pcat: begin implementing find
...
Not comparing strings yet. Without asm tooling support, it's a big
chunk to swallow at once. It's progressing well!
2020-06-14 21:52:58 -04:00
Virgil Dupras
3be30e24bb
pcat: implement execute and nativeWord
2020-06-14 15:27:26 -04:00
Virgil Dupras
bf0e999f8e
pcat: read LATEST and jump to it
2020-06-14 14:51:32 -04:00
Virgil Dupras
a72322df31
pcat: begin structuring around words
2020-06-14 14:15:44 -04:00
Virgil Dupras
85a0b87da3
z80: reorder compiledWord and doesWord, saving ourselves a jump
2020-06-14 10:12:56 -04:00
Virgil Dupras
38d5a9f303
z80: inline cellWord in stable ABI
2020-06-14 10:07:46 -04:00
Virgil Dupras
40f92b9bab
z80: optimize chkPS
...
Inline it in next and make chkPS, call a newly reserved label for
it directly, removing a layer of indirection. This frees a spot in
the stable ABI.
2020-06-14 09:48:10 -04:00
Virgil Dupras
31095bc04d
z80: remove call indirections in tight spots
2020-06-14 09:29:34 -04:00
Virgil Dupras
2b7abf802f
pcat: begin porting forth
...
I'm not sure yet where I'm going, but I'm not going to build the
8086 port from the ground up like I did with the z80, that is,
making is sustain itself and eventually merge its forth code with
core words. That would be too much work which would then be thrown
out (all those words I'll initially have to implement in asm which
are already implemented in Forth).
What I *think* I can do is build a mirror version of z80 boot code
and cross-compile it from the z80. This means it has to follow z80
stable ABI.
Nope, I'm not sure where I'm going...
2020-06-13 21:37:54 -04:00
Virgil Dupras
1a467efae1
pcat: use a far jump to boot into the OS
...
Unless I misunderstood, this is supposed to set CS. This would make
all SREG have the same value. This allows us to remove BIN( offset
from os.bin.
I've tried booting to offset 0, but it didn't seem to work. Let's
settle for 0x8000. 512kb of system RAM is way more than we need
anyways.
2020-06-13 20:06:51 -04:00
Virgil Dupras
507c2c12e7
8086asm: clarify operands and fix stupidities
2020-06-13 17:58:42 -04:00
Virgil Dupras
5033f17be2
8086asm: tidy up a bit
2020-06-13 16:21:56 -04:00
Liorst4
374932fa4d
Clean libz80/libz80.o in make clean ( #118 )
2020-06-13 15:56:28 -04:00
Virgil Dupras
07e50313c7
pcat: separate MBR code and OS code
...
MBR code now strictly loads OS code into memory and jumps into it.
Now, I've got to consolidate my assembler code, modrm logic is
messed up.
2020-06-13 15:35:16 -04:00
Virgil Dupras
e17f2e6907
pcat: read sector from floppy
2020-06-13 13:29:04 -04:00
Virgil Dupras
b037c86598
recipes/pcat: now tested on real hardware!
2020-06-13 11:47:32 -04:00
Virgil Dupras
f9d04848bd
emul: adjust README. AT-XY is implemented
2020-06-13 11:46:59 -04:00
Maykel Moya
7be6475ea2
Document how to launch a REPL in the host ( #117 )
2020-06-13 11:11:54 -04:00
Virgil Dupras
66b27b0790
8086asm: properly initialize DS and DF
2020-06-12 19:07:23 -04:00
Virgil Dupras
177750c928
recipes/pcat: first steps into 8086!
2020-06-12 14:03:31 -04:00
Virgil Dupras
4e18fafe46
8086asm: now enough tooling to assemble a PC/AT Hello World boot
2020-06-12 13:12:41 -04:00
Virgil Dupras
210b833c71
8086asm: begin adding MODRM-enabled ops
2020-06-12 12:07:48 -04:00
Virgil Dupras
749fdf1b18
8086asm: add 8-bit JMP, MOVrI, INT,
...
Verified against nasm with equivalent code.
2020-06-12 11:29:00 -04:00
Virgil Dupras
405444d630
8086asm: first steps
2020-06-12 10:49:27 -04:00
Virgil Dupras
1871c46614
VE: add backspace support in replace mode
2020-06-11 22:29:05 -04:00
Virgil Dupras
dc368597a6
VE: Add dirtiness indicator in status bar
...
Written from VE!
2020-06-11 21:52:08 -04:00
Virgil Dupras
838c88459b
Make BLK@ FLUSH only if loading a different block
...
Otherwise, when editing a file with VE, we would constantly write
to disk, which is a bit inefficient.
2020-06-11 21:42:52 -04:00
Virgil Dupras
e317e9cc78
VE: use system input buffer for IBUF and FBUF typing
...
This gives us backspace handling. Also, remove all usages of C<
which allows us to remove the C<* override.
2020-06-11 20:45:46 -04:00
Virgil Dupras
4146110e0d
Move EMPTY to core words
...
It's a quite useful word and it doesn't make sense to reload it from
disk after each usage.
2020-06-11 19:04:03 -04:00
Virgil Dupras
f6ded7712e
VE: add 't'
...
This is the first commit I do entirely in VE. It's a habit I'm planning
on taking as it helps a lot to find usability issues.
2020-06-11 18:12:01 -04:00
Virgil Dupras
e83d5073ba
VE: disallow buffer overflow during typing
...
When reaching the end of the buffer when typing in IBUF or FBUF, stop
typing instead of overflowing.
2020-06-11 14:48:18 -04:00
Virgil Dupras
394f962510
recipe: fix makefiles for fresh clone contexts
...
All recipe makesfiles would previously assume a built emul/.
Fixes #113
2020-06-11 12:23:59 -04:00
Virgil Dupras
bd7da4658b
VE: add gutter
2020-06-11 12:01:22 -04:00
Virgil Dupras
a405f77185
ed: don't crash when inserting in 64th char of the line
2020-06-10 20:56:19 -04:00
Virgil Dupras
7cad9ffe40
LIST: simplify logic
...
There wasn't much of a reason to leave a loop early on 0x0d or null.
The idea was that once you have a CR or null, the rest is garbage
and you shouldn't see it.
However, it brought a problem: In VE, you couldn't insert characters
past that limit. It would be written, but never displayed. So let's
get rid of this logic and simply always display a 64x16 grid.
2020-06-10 19:00:03 -04:00
Virgil Dupras
bc951a5ff1
ed and VE: add command Y
2020-06-10 17:27:14 -04:00
Virgil Dupras
8f0e51a21c
VE: make D copy first deleted line to IBUF
2020-06-10 16:59:12 -04:00
Virgil Dupras
6a6c59300e
VE: make ACC reset after each non-digit keystrokes
...
It simplifies things. Also, removed ';' which became useless.
2020-06-10 16:54:36 -04:00
Virgil Dupras
c16c5c98ce
Improve usage docs
2020-06-09 22:55:42 -04:00
Virgil Dupras
1adfd0c1a6
ed: make X and E cut to IBUF
...
This allows cut&paste similar to VI's
2020-06-09 22:09:15 -04:00
Virgil Dupras
f90e03b0cb
ed: free some blocks for the docs
2020-06-09 21:48:49 -04:00
Virgil Dupras
64ce8ab3e9
ed: Improve F with repeated searches
...
Make F search from curpos+1 so that it's possible to search the
same word we've just found a second time. Previously, it would find
the word under the cursor.
Also, improve docs a bit.
2020-06-09 21:17:08 -04:00