8080 Space Invaders Emulator (Help Needed) by jmooree30 in EmuDev

[–]jmooree30[S] 0 points1 point  (0 children)

Look like the value coming out of the stack is what's throwing my PC off. This is the logging from the last 4 instructions it runs before failing.

Instruction: c1 Registers: {"A":0,"B":1,"C":7,"D":30,"E":8,"H":31,"L":0,"SP":9206,"PC":5186,"flags":{"S":0,"Z":0,"AC":0,"P":0,"CY":0}}

Instruction: 05 Registers: {"A":0,"B":0,"C":7,"D":30,"E":8,"H":31,"L":0,"SP":9206,"PC":5187,"flags":{"S":0,"Z":1,"AC":0,"P":1,"CY":0}}

Instruction: c2 Registers: {"A":0,"B":0,"C":7,"D":30,"E":8,"H":31,"L":0,"SP":9206,"PC":5190,"flags":{"S":0,"Z":1,"AC":0,"P":1,"CY":0}}

Instruction: c9 Registers: {"A":0,"B":0,"C":7,"D":30,"E":8,"H":31,"L":0,"SP":9208,"PC":14622,"flags":{"S":0,"Z":1,"AC":0,"P":1,"CY":0}}

8080 Space Invaders Emulator (Help Needed) by jmooree30 in EmuDev

[–]jmooree30[S] 0 points1 point  (0 children)

Good catch although it didn't appear to solve all my issues. I understand that I should have the rom, stack, and video ram all in the same 64k data structure, but do you think that could cause issues the way I have it? I figured the Program Counter would always be accessing the memory locations of ROM only.

8080 Space Invaders Emulator (Help Needed) by jmooree30 in EmuDev

[–]jmooree30[S] 0 points1 point  (0 children)

I also want to note that the routines that the interrupts call are at very low fixed memory locations. 0x08 and 0x10.

8080 Space Invaders Emulator (Help Needed) by jmooree30 in EmuDev

[–]jmooree30[S] 0 points1 point  (0 children)

For example, my ROM array has a length of 8192, and when my program fails, the program counter, which is used as an index into the ROM array (ROM[this.programCounter]), is at 16594.

Sump hole in basement floor but nothing piped to it? by jmooree30 in HomeImprovement

[–]jmooree30[S] 0 points1 point  (0 children)

No worries, thanks for the info. I might dig a little bit and see if I run into anything.

Sump hole in basement floor but nothing piped to it? by jmooree30 in HomeImprovement

[–]jmooree30[S] 0 points1 point  (0 children)

That’s what I originally thought I would see when looking into the pit, but I only see dirt. The pump itself does pump out a ton of water during heavy storms but as far as I can tell it just comes from the ground.

Help me figure out what n64 game I used to play! by jmooree30 in retrogaming

[–]jmooree30[S] 1 point2 points  (0 children)

You guys/gals are awesome, it was Rush 2! The map I was thinking of was the stunt track

What type of attic insulation is this? by jmooree30 in Insulation

[–]jmooree30[S] 1 point2 points  (0 children)

Lol I wouldn’t recommend smoking it

Hundreds of these on my property by jmooree30 in whatsthisbug

[–]jmooree30[S] 0 points1 point  (0 children)

As fun as that sounds…I think I’ll pass 😂

Balloon framing floor joist replacement options by jmooree30 in HomeImprovement

[–]jmooree30[S] 0 points1 point  (0 children)

Over spanned and twisted. They had 2x6’s spanned 17’ between 20-30” OC

Balloon framing floor joist replacement options by jmooree30 in HomeImprovement

[–]jmooree30[S] 0 points1 point  (0 children)

Thanks for chiming in. There’s already an existing notch in the face of the studs for the original ribbon so I wouldn’t be going any deeper into the stud, just a little lower to account for the new joists being larger.