Skip to content

quick question about BANK() #1261

Closed Answered by aaaaaa123456789
win-ini asked this question in Q&A
Discussion options

You must be logged in to vote

BANK(xxx) is returning the value, which is $1FE in your case. There is nothing special about that.
The rest is the error you'd normally get for trying to write that instruction: ld a, $1fe directly will give you the same error. If you actually do this, the value will be truncated (it's equivalent to ld a, $fe) and it won't do what you want.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by win-ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants