Skip to main content

Questions tagged [z80]

The Zilog Z80 microprocessor. Prefer [game-boy] instead for questions about the Game Boy CPU nicknamed the ‘GBZ80’.

4 votes
2 answers
276 views

Are a Z80 address pins tristate?

I been looking at the Z80 CPU recently and am wondering how difficult it would be to wire one up. The thing I'm interested in is how to connect it to some RAM. In particular, I'd like to know if the ...
Stormcloud's user avatar
7 votes
1 answer
529 views

How to best use IX as a return stack

I'm new to Z80 assembler and am porting a Forth interpreter from a J1 stack machine to a Z80 based board. The Z80 port uses SP for the data stack, and IX for the return stack. The port uses a normal ...
Look Alterno's user avatar
9 votes
3 answers
2k views

What is the purpose of the M1 pin on a Z80

I've been looking through bits of documentation about the (sadly recently discontinued) Z80 processor and the machines people have built with it. One thing I noticed is pin 27, called "M1", ...
Stormcloud's user avatar
3 votes
2 answers
347 views

NES vs SMS ROM speed

The NES used a 6502-derived CPU at 1.79 MHz. The Sega Master System used a Z80 at 3.58 MHz. How did they differ in terms of what speed grade ROM they required in their respective cartridges? I know it'...
rwallace's user avatar
  • 63.1k
0 votes
2 answers
207 views

ASM as a DSL of a HLL? [closed]

There used to be a lot of discussion as regards embedding DSLs (Domain Specific Languages) into high-level languages (HLLs). The only example, where this is possible, I know of, is c++ and I had ...
user1095108's user avatar
13 votes
3 answers
1k views

What are some tracing disassemblers for the Z80

What are some some tracing disassemblers for the Z80? I.e., disassemblers that will trace through the code and disassemble as instructions only the areas it traces through, leaving the rest as data. (...
cjs's user avatar
  • 26.9k
4 votes
1 answer
296 views

What is R register and DRAM refresh internal operation

Resources say that R value gets incremented by Z80 after each M-cycle, and that R is used in Dynamic RAM refresh mechanism (avoiding charge leakage). My questions: how concrete value of R (say, #11) ...
Max's user avatar
  • 285
14 votes
2 answers
1k views

Is there any way to read current Interrupt Mode in Z80 machine code?

Is there any way to read current Interrupt Mode in Z80 machine code? Official Z80 datasheet mentions IMFa/IMFb registers which keep the mode value. Thank you
Max's user avatar
  • 285
3 votes
1 answer
265 views

Does Altair Basic actually risk wiping itself out of memory in its auto-memsize initialization?

I've recently designed and built a modern Z80 single board computer based on a Z80 IPC chip. It's general purpose, and though I did not design it for compatibility to Altairs, I decided that my first ...
scm's user avatar
  • 1,129
3 votes
4 answers
652 views

Why is Z80 called a 8-bit CPU? [duplicate]

Z80 has a 16-bit address bus and 16-bit arithmetic instructions such as add hl,de. Why is it still called a 8-bit CPU?
xiaokaoy's user avatar
  • 141
5 votes
2 answers
197 views

Change text color in Z80 assembly for Amstrad CPC 464

I am trying to code this program, similar to game: "The Typing of The Dead" in Amstrad CPC 464 using Assembly language for the Z80 processor. The program consists in when you see a string of ...
reymagnus's user avatar
  • 173
8 votes
1 answer
601 views

Size-optimization of a 256-byte "LDIR" adapter

I'm working on tweaking ABC-800 BASIC II machine code, and there's a routine there that does a "256-byte" equivalent of LDIR. B is not used, C=0 transfers 256 bytes, C=1 transfers 1 byte, ...
Kuba hasn't forgotten Monica's user avatar
3 votes
1 answer
231 views

Do Z80 datalines need termination [closed]

If I am using a z80 can you just tie all data lines to the ROM 28c16 or do they need termination via 10k ohm resistors to ground?
Mwendt's user avatar
  • 31
4 votes
3 answers
642 views

Compressing a list of records so it can be uncompressed elementwise [closed]

I have a bunch of lists of generic items (byte sequences) and I would like to store them compressed. There are several tools out there that run on modern computers to compress data into as-small-as-...
Cactus's user avatar
  • 2,760
5 votes
2 answers
655 views

ZX Spectrum+ 48K with faulty memory writing address

I have ZX Spectrum+ 48k (board issue 6a) with writing to memory issue. When I try to write a value by POKE command to address 49152 (C000h) then it overwrites additionally value with address 16384 (...
vikkk's user avatar
  • 51

15 30 50 per page
1
2 3 4 5
14