Aleph-Ø utilise eldritch.cafe. Vous pouvez læ suivre et interagir si vous possédez un compte quelque part dans le "fediverse". Si ce n’est pas le cas, vous pouvez en créer un ici.
Aleph-Ø @aleph

So I'm writing an assembler for a small VM I wrote based on the z80, anybody who's written one have any tips?

@aleph You can try doing it for gameboy instead. The Z80 and GB CPUs are almost similar plus you get the added bonus of playing gameboy roms 😀 . Also, this talk is really good: youtube.com/watch?v=HyzD8pNlpw

@aleph Awesome! Making assemblers is super fun. I recommend making a large library of example programs and running them through someone else's assembler so you have some test cases to verify your output (especially for weird cases like relative jumps and stuff).

Several years ago, I actually wrote an assembler in python for NES 6502 code that I was quite proud of at the time. Just let me know if you'd like to see it and I'll see if I can find it.

@ishara I would love to see it actually. Not sure verifying will work though, it's my own ISA. Just took some cues from the z80

@aleph Ah, I thought you wrote your own z80 emulator (I actually wrote both an assembler and emulator because I'm silly like that).

github.com/isharacomix/8bitmoo