3 ms·
I'm the same with LDA immediate = A9 in 6502 machine code, from my C64 days. It's disturbing how strongly burned-in those neurons are ...
by gnat 3y ago
I'm the same with LDA immediate = A9 in 6502 machine code, from my C64 days. It's disturbing how strongly burned-in those neurons are ...
- gilmore606 3y agoSYS 64738
- anyfoo 3y agoIn a similar vein, C000 == 49152 has been burned into my brain. I recognize it immediately, because that’s where most C64 assembly programs were loaded, followed by “SYS 49152” for loading them. A000 for example I recognize, but can’t tell you as quickly what it is in decimal as I can with C000.
- CptTightpants 3y agoThat address is where cartridges would appear in memory when plugged in, which is why it became SOP to use it.
- bonzini 3y agoNope it's because it's the only 4K of memory that BASIC did not use and that wasn't mapped under the system ROM; so it was a common place where to put assembly language code to be loaded with a BASIC program, or to be used while the BASIC interpreter was running. Cartridge ROM can appear at various places since they have access to the memory bus but $C000 can't be used as the only place for cartridge ROM.
- Someone 3y agoWeird how the brain works, given that 0xA000 = 0xA × 0x1000 = 10 × 0x1000 and I guess you know 0x1000 = 4096
- anyfoo 3y agoI just know 49152 on another level, as SYS49152 was part of very early childhood. No thinking at all necessary, even as trivial as 40960=10x4096. 49152 is ingrained.
- deleted 3y ago[deleted]
- crest 3y ago$18, $69, xx