Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimization of "NEXT" #23

Open
redirectme opened this issue Aug 20, 2024 · 0 comments
Open

Optimization of "NEXT" #23

redirectme opened this issue Aug 20, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@redirectme
Copy link

; JP next at end of code
next:
	IF tokenised
		; Load byte, advance PC
		LD A, (IY+0)
		INC IY
                ADD A,A         ; hight bit of A to CF
		JR C, .not_token
		; If token, load token address and jump
		LD E, A          ;l
		LD D, tokens >> 8;h
		LD A, (DE)        ; -
		LD C, A           ;ld
		INC DE
		LD A, (DE)        ; -
		JR .fin
.not_token:     
		RRA    ; undo ADD A,A
		; If not token, jump to big endian address
		LD C, (IY+0)
		INC IY
.fin:		LD B, A
		PUSH BC
		RET
	ELSE
...
@Veltas Veltas added the enhancement New feature or request label Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants