diff options
| author | kitty <nepeta@canaglie.net> | 2026-03-16 00:41:24 +1100 |
|---|---|---|
| committer | kitty <nepeta@canaglie.net> | 2026-03-16 00:41:24 +1100 |
| commit | 8b07d5b4068ec54f8f1e62d151da84c42ebf3bdd (patch) | |
| tree | d9d3736c7339baf3b7a492ab9c4f540f9f058a15 | |
| parent | c46d6efecc69641a36ef35af333e8c49f4aba631 (diff) | |
dummy sanctuary.fs
| -rw-r--r-- | Makefile | 3 | ||||
| -rw-r--r-- | sanctuary.fs | 1 | ||||
| -rw-r--r-- | sanctuary.s | 6 |
3 files changed, 7 insertions, 3 deletions
@@ -1,12 +1,13 @@ TARGET := sanctuary SRCS = sanctuary.s +FTHS = sanctuary.fs all: $(TARGET) $(TARGET): $(TARGET).o ld -N -static -o $@ $< -$(TARGET).o: $(SRCS) +$(TARGET).o: $(SRCS) $(FTHS) nasm -g -F dwarf -f elf64 -o $@ $< .PHONY: clean diff --git a/sanctuary.fs b/sanctuary.fs new file mode 100644 index 0000000..5c83e55 --- /dev/null +++ b/sanctuary.fs @@ -0,0 +1 @@ +word-parsing-is-working just-kidding-lol diff --git a/sanctuary.s b/sanctuary.s index 09045c0..2db3bc8 100644 --- a/sanctuary.s +++ b/sanctuary.s @@ -147,9 +147,10 @@ defcode "parse-name", parse_name, 0 jge .wordloop_e inc r11 lodsb - je .wordloop + jmp .wordloop .wordloop_e: + dec r11 sub rsi, qword [tib] mov qword [to_in], rsi pop rsi @@ -199,9 +200,10 @@ defcode "parse", parse, 0 jge .wordloop_e inc r11 lodsb - je .wordloop + jmp .wordloop .wordloop_e: + dec r11 sub rsi, qword [tib] mov qword [to_in], rsi pop rsi |
