Virgil Dupras
cc7a4bae58
zasm: improve .equ duplicate detection handling
Things are a bit more straightforward now.
il y a 5 ans
Virgil Dupras
9ea72dc1d0
zasm: add separate symbol registry for constants
This will allow me to make the ".org" treatment a bit less murky.
il y a 5 ans
Virgil Dupras
cdb206b7a5
zasm: fix nasty (iy+d) misparsing bug
*sob*...
il y a 5 ans
Virgil Dupras
b95f4c8c24
zasm: remove SYM_CTX_PTR
il y a 5 ans
Virgil Dupras
f4f91ebd79
zasm: remove SYM_CTX
il y a 5 ans
Virgil Dupras
311d04e9aa
zasm: make symbol registry easily parametrizable
I'm about to split the global registry in two (labels and consts)
and the previous state of registry selection made things murky.
Now it's much better.
il y a 5 ans
Virgil Dupras
518f12b07f
sms/vdp: clear 2 lines forward when doing LF
It allows to see much more easily where the action happens on the screen.
il y a 5 ans
Virgil Dupras
87d794d426
recipes/sms/romasm: adjust ed/zasm offsets
il y a 5 ans
Virgil Dupras
0237ff105f
ed: fix 'd' going crazy when deleting last lines of buf
il y a 5 ans
Virgil Dupras
0fd16a0bb6
ed: fix boken 'a' and 'd' cmds
il y a 5 ans
Virgil Dupras
f43241a5a0
kbd: support shifted characters
il y a 5 ans
Virgil Dupras
52e5f5b5bf
kbd: simplify code
il y a 5 ans
Virgil Dupras
77d805ea0f
shell: allow cmds to be shorter than 4 chars
il y a 5 ans
Virgil Dupras
70a42e8c4d
recipes/sms/romasm: first steps
il y a 5 ans
Virgil Dupras
421d881fae
ed: allow inserting in empty file
il y a 5 ans
Virgil Dupras
34f499184d
zasm: add ".bin" directive
Also, remove zasm/test7 because it changes too much all time time
(whenever zasm changes) and isn't precise enough. Too much noise,
not worth it.
il y a 5 ans
Virgil Dupras
01031a780a
ed: Add 'w' command
il y a 5 ans
Virgil Dupras
f6479486f2
ed: allow appending at the end of the file
il y a 5 ans
Virgil Dupras
8d7abd9994
ed: fix broken buf insert logic
il y a 5 ans
Virgil Dupras
1a5a1b9861
ed: make scratchpad memory only
The dual scraptchpad thing doesn't work. Things become very
complicated when it's time to write that back to the file. We
overwrite our contents and end up with garbage.
il y a 5 ans
Virgil Dupras
942d2a952d
ed: take filename as an argument
This hard-binds ed to the filesystem (I liked the idea of working
only with blockdevs though...), but this is necessary for the
upcoming `w` command. We need some kind of way to tell the
destination to write to truncate itself.
This only has a meaning in the filesystem, but it's necessary to
let the file know that its registered file size has possibly
shrunk.
I thought of alternatives that would have allowed me to keep ed
blkdev-centered, but they were all too hackish to my own taste.
Hence, this new hard-bind on files.
il y a 5 ans
Virgil Dupras
fe15bafeca
zasm: fix bug with registry selection
During expression parsing, if a local label was parsed, it would
select the local registry and keep that selection, making
subsequent global labels register in the wrong place.
il y a 5 ans
Virgil Dupras
a7afbe091e
tools/tests: remove scas requirement
I'm about to break compatibility with scas. Before I do that, I
need to adjusts tests. Instead of running scas to compare results,
we commit expected result as binaries directly in the repo.
il y a 5 ans
Virgil Dupras
0c0db41477
recipes/sms/kbd: add schematic
il y a 5 ans
Virgil Dupras
57e7b3ca05
recipes/sms/kbd: PS/2 keyboard adapter for the SMS!
il y a 5 ans
Virgil Dupras
23354eba94
stdio: fix broken ReadC logic
Looping inside ReadC broke the shell's hook logic. We have to
return immediately when nothing is typed.
il y a 5 ans
Virgil Dupras
253674ea05
Fix broken tests
Also, make tests run in a *BSD environment
il y a 5 ans
Virgil Dupras
eefadc3917
ed: add support for 'a' and 'i'
il y a 5 ans
Virgil Dupras
77a23cee84
ed: fix bufDelLines logic
It was mostly wrong.
il y a 5 ans
Virgil Dupras
5669884508
ed: read initial contents in bufInit
il y a 5 ans
Virgil Dupras
797cbdcc95
blockdev: protect IX in routines
Sure, it's a bit slower, but it prevents a lot of hard to debug
problems. I don't have to want to remember "don't use IX if you
have any blk* calls". Let's optimize I/O later.
il y a 5 ans
Virgil Dupras
3b0029335a
ed: add README
il y a 5 ans
Virgil Dupras
8af1cf468c
ed: add 'd' cmd
il y a 5 ans
Virgil Dupras
50d0dc982c
ed: check addr bounds
il y a 5 ans
Virgil Dupras
c811d5330c
apps/ed: add support for addr ranges
il y a 5 ans
Virgil Dupras
2d9f74c2af
apps/ed: refactoring
il y a 5 ans
Virgil Dupras
8cf68dc7ad
apps/ed: handle +[n] and -[n] addresses
il y a 5 ans
Virgil Dupras
3861670bcc
shell: don't parse empty cmds
il y a 5 ans
Virgil Dupras
951dd2206d
apps/ed: add the concept of "current line"
il y a 5 ans
Virgil Dupras
e0f2a71dfc
apps/ed: print specified line
il y a 5 ans
Virgil Dupras
237d04fefd
zasm: update bootstrap bin
il y a 5 ans
Virgil Dupras
6dbbfa837d
apps/ed: add (dummy) line number processing
Starting to feel interactive...
il y a 5 ans
Virgil Dupras
3491c26132
apps/ed: start implementing I/O
il y a 5 ans
Virgil Dupras
3d474c9121
apps/ed: first steps
il y a 5 ans
Virgil Dupras
921a109749
stdio: little tweaks
il y a 5 ans
Virgil Dupras
e01ee170cb
stdio: add stdioReadC
A routine to conveniently read lines from TTY. Extracted from
shell. Will be used in other places.
il y a 5 ans
Virgil Dupras
252d71f1b8
Make tools/emul *BSD-friendly
il y a 5 ans
Virgil Dupras
8cc5bbb110
recipes/sms: update README
il y a 5 ans
Virgil Dupras
ade9b96d14
sms/pad: make B jump to the next selection "class"
il y a 5 ans
Virgil Dupras
162e503291
sms/vdp: properly protect AF on PutC
il y a 5 ans