I probably should have read that better.
Search found 4 matches
- Wed Apr 21, 2021 8:01 am
- Forum: General Z80 Programming
- Topic: How is LDIR affecting memory?
- Replies: 5
- Views: 7290
- Tue Sep 22, 2020 9:08 am
- Forum: General Z80 Programming
- Topic: How is LDIR affecting memory?
- Replies: 5
- Views: 7290
Re: How is LDIR affecting memory?
So, I thought I could test this with this little piece of code: org &8000 LD DE,1 LD (&4000),DE ; load 1 into memory at &4000 LD HL,4000 ; make HL a pointer to &4000 INC HL ; HL now holds &4001 RET After this, HL has changed to &4001, DE holds 1, as does the memory address &a...
- Tue Sep 22, 2020 8:34 am
- Forum: General Z80 Programming
- Topic: How is LDIR affecting memory?
- Replies: 5
- Views: 7290
Re: How is LDIR affecting memory?
I think you've slightly misread the cheatsheet (unless there's a misprint version out there) The first line should be: LD (DE),(HL) Yes, that must be it. I already understood that (HL) and (DE) are pointers to an address in memory, but I thought that for instance INC HL would differ from INC (HL) i...
- Thu Sep 17, 2020 6:40 am
- Forum: General Z80 Programming
- Topic: How is LDIR affecting memory?
- Replies: 5
- Views: 7290
How is LDIR affecting memory?
Hi, I'm new here, thank you for giving me access to this forum. I'm following your lessons here (and watching the videos) but I'm already stuck at lesson two. Here LDIR is used to loop over memory addresses to set them to 0 to clear the screen. In the cheat sheet LDIR is explained as Load HL, DE Unt...