I think your understanding is still wrong.
So can I conclude that when r is HL or DE, INC r actually increases the value in (HL)/(DE), not the value in HL/DE?
No that is actually wrong.
LDIR does the exact same as this piece of code:
;copy &100 Bytes from &4000 -> &8000
LD BC,&100 ; load BC ...
Search found 1 match
Search found 1 match
• Page 1 of 1
- by SerErris
- Sat Nov 26, 2022 2:55 pm
- Forum: General Z80 Programming
- Topic: How is LDIR affecting memory?
- Replies: 5
- Views: 15298
Search found 1 match
• Page 1 of 1
Jump to
- Chibi-News!
- Show and Tell
- Introductions
- General Assembly
- ↳ General Assembly Programming
- Z80 Assembly Programming
- ↳ General Z80 Programming
- ↳ Amstrad CPC Assembly Programming
- ↳ Camputers Lynx Assembly Programming
- ↳ Elan Enterprise Assembly Programming
- ↳ Gameboy Assembly Programming
- ↳ Master System & GameGear Assembly Programming
- ↳ MSX & MSX2 Assembly Programming
- ↳ Sam Coupe Assembly Programming
- ↳ TI-83 Assembly Programming
- ↳ ZX Spectrum Assembly Programming
- ↳ Other Z80 Systems
- 6502 Assembly Programming
- ↳ General 6502 Programming
- ↳ Apple IIe Assembly Programming
- ↳ Atari 800 and 5200 Assembly Programming
- ↳ Atari Lynx Assembly Programming
- ↳ BBC Micro Assembly Programming
- ↳ C64 Assembly Programming
- ↳ Nintendo Entertainment System / Famicom Assembly Programming
- ↳ Super Nintendo Assembly Programming
- ↳ PC-Engine Assembly Programming
- ↳ VIC-20 Assembly Programming
- ↳ PET Assembly Programming
- ↳ Other 6502 Systems
- 68000 Assembly Programming
- ↳ General 68000 Assembly
- ↳ Amiga Assembly Programming
- ↳ Atari ST Assembly Programming
- ↳ Genesis / Megadrive Programming
- ↳ NeoGeo Assembly Programming
- ↳ Sinclair QL Assembly Programming
- ↳ X68000 Assembly Programming
- ↳ Other 68000 Systems
- ARM Assembly Programming
- 65816 Assembly Programming
- 8086 Assembly Programming
- 6809 Assembly Programming
- PDP-11 Assembly Programming
- TMS9900 Assembly Programming
- OTHER Assembly Programming
- Off-topic
- ↳ General Off topic