Skip to content

Commit

Permalink
Don't preserve return stack pointer between interpreted words
Browse files Browse the repository at this point in the history
This isn't done by the expanded interpreter either, and not doing
it lets me save 4 bytes.
  • Loading branch information
meithecatte committed Mar 6, 2023
1 parent a1d9947 commit f9533fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ Git or GitHub's web interface. This disparity is handled by two Python scripts:

## Free bytes

At this moment, not counting the `55 AA` signature at the end, **496** bytes are used,
leaving 14 bytes for any potential improvements.
At this moment, not counting the `55 AA` signature at the end, **492** bytes are used,
leaving 18 bytes for any potential improvements.

Byte saving leaderboard:
- Ilya Kurdyukov saved 24 bytes. Thanks!
Expand Down
2 changes: 0 additions & 2 deletions boot.s
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,13 @@ STATE equ $+1

; Execute the word
.execute:
RetSP equ $+1
mov di, RS0
pop bx
mov si, .return
jmp ax
.return:
dw .executed
.executed:
mov [RetSP], di
push bx
jmp short InterpreterLoop

Expand Down

0 comments on commit f9533fc

Please sign in to comment.