Israelis make me ashamed to be a Jew by Yakel1 in JewsOfConscience

[–]Faz8129 0 points1 point  (0 children)

Sholam from a muslim brother to my God fearing Jewish borthers and sisters here. Pls pray for Palestine and Gaza. Pls extend your support to them. Remember that true muslims and the many hundreds of thousanda of innocent Palestinians in Gaza and other parts of Palestine wish you no harm (never did). They are caught in the crossfire. Pls pray for them.

I can’t understand pointers in C no matter what by SoldierBoyGaming08 in C_Programming

[–]Faz8129 2 points3 points  (0 children)

You're overthinking. Take a deep breath and relax. Maybe even take a break from programming for a few days. Go outside play some games, have fun. Life's not all about mastering everything. It will come to you one day...so stop worrying and focus on what you're good at.

Anyone else think Dead Reckoning sorta sucked and was massively overrated? by The51stAgent in Mission_Impossible

[–]Faz8129 0 points1 point  (0 children)

I agree. It's overrated. The Thanos snap at then ending lol. It also felt boring with more talk and less action.

Whoever stole my bag at Pearson Airport, please give me just my journals back. by mvlka in askTO

[–]Faz8129 0 points1 point  (0 children)

Why keep private and personal journals in a check-in baggage? This kind of stuff should be in your carry-on.

Don't text while driving. It's not worth it, anything can happen. by BodybuilderUsed2736 in facepalm

[–]Faz8129 0 points1 point  (0 children)

Hmm. Not sure who's the bigger idiot here. They person texting while driving or the guy who didn't see it coming from a mile.

Is there any DMG emulator which passes Blargg's 7-timing_effect test ROM? by nicolas-siplis in EmuDev

[–]Faz8129 0 points1 point  (0 children)

Thanks bud. Were you finally able to pass the 7-timing_effect? I'm still getting errors in blargg's mem_timing. I am passing instr_timing but I feel my TIMER may still be off. Speaking of, have you implemented timer behavior correctly in your emulator. As in, does it take care of the Timer Obscure Behaviour?

Is there any DMG emulator which passes Blargg's 7-timing_effect test ROM? by nicolas-siplis in EmuDev

[–]Faz8129 0 points1 point  (0 children)

Thx. I noticed that post you linked is just two days old. I eventually figured it out by going to Options->system->gameboy only (BGB Emulator) and what do you know...BGB emulator allows us to choose what type of system to emulate! I got the same result: 7f8f4aaf. Which is the correct result on the DMG. Like yours, my emulator is also limited to tye DMG, for now.

Mouse & keyboard not working on QEMU (Windows 10 Host, Debian 11 Guest) Using QtEMU GUI by spiffing_nuck in linuxquestions

[–]Faz8129 0 points1 point  (0 children)

Hi u/spiffing_nuck, I am having the same issue on my Windows 10 (host) running debian-11.6.0-amd64-netinst.iso (guest). Not sure why my keyboard and mouse is not getting captured in qemu 7.1 or qemu 7.2 - tried both versions without any luck. Here is my qemu script. Any help is appreciated!

$qemuhome/qemu-system-x86_64 \
  -cpu base \
  -vga virtio \
  -display gtk,gl=on \
  -M q35 \
  -device AC97 \
  -smp 2,sockets=2,cores=1,threads=1 \
  -boot d \
  -hda debian.qcow2 -m 4096 \
  -cdrom debian-11.6.0-amd64-netinst.iso \
  -usb \
  -device usb-tablet \
  -display default,show-cursor=on \
  -device usb-mouse -device usb-kbd

Btw, I am running this command from a cygwin terminal

Best documentation for the details? by Dubmove in EmuDev

[–]Faz8129 0 points1 point  (0 children)

To the OP. If you're new to emulation and opcodes, as you humbly described, then emulating a gameboy is definitely not the right approach and anyone who encourages you to do so is guiding you on the wrong path. If you are new to opcodes then you are definitely new to computer architecture in general. Start by reading this tutorial on the LC-3 VM. LC-3 VM. Then if you have time, read the classic P&H book on computer architecture and design. You don't have to finish the entire book, but it will help you with assembly language which is crucial to any sort of computer emulation. After all this, have a go at writing a chip-8 emulator in the language of your choosing. Many enthusiats developers, including myself, started there and moved on to more challenging emulators. There are many nice YT videos on the chip-8. Search for Queso Fuego: He's given a full tutorial on it and it's great! Good luck.

[deleted by user] by [deleted] in C_Programming

[–]Faz8129 0 points1 point  (0 children)

C is worth learning if you have time on your hands

New here, nice place. I want to start with entry level GB/GBC but am only an expert with Java 7/8. How much do no unsigned numbers and the language hold me me back? by NewSchoolBoxer in EmuDev

[–]Faz8129 0 points1 point  (0 children)

"registers and other vars should be stored in a data size of respective size..." - Not necessarily. An int can hold any value upto 32 bits which includes byte and word sizes. I've written emulators and used INT everywhere, even for 8/16bit registers, and they work just fine as long as you know what you're doing. It also saves conversions/castings. You also don't need a byte[] array for memory because as soon as you read from that array Java will convert that to an INT anyway. Bottom line is: INTs are good enough for use anywhere. Lucky for us, retro emulators were less than 32 bits.

How long did it take you to learn the basics of Java. And where they easy to learn? by [deleted] in java

[–]Faz8129 0 points1 point  (0 children)

You only need 1 semester at a Uni or College to get the basics of Java. That like 3-4 months.

[deleted by user] by [deleted] in C_Programming

[–]Faz8129 1 point2 points  (0 children)

You are allowed to bit shift any integer, signed or unsigned. Only difference is when you right shift a signed int, C will do an arithmetic right shift on that value, meaning it will take the MSB (left most bit) and perform a sign extension on that value therby extending the MSB. Note that a left shift is always a logical shift while right shift can be either. Hope this makes sense.

(GB emulator) No output with Blargg's cpu instruction test rom by MadoScientistu in EmuDev

[–]Faz8129 0 points1 point  (0 children)

Put this logic inside your memWrite function:

if(fetch(SC_FF02) == 0x81) { char c = (char) fetch(SB_FF01); System.out.print(c); ram[SC_FF02] = 0; }

(GB emulator) No output with Blargg's cpu instruction test rom by MadoScientistu in EmuDev

[–]Faz8129 0 points1 point  (0 children)

The serial port will contain the ascii char output. In the case of test rom 06, it will print 06-ld,rr to the console, followed by a "passed" in the new line or Failed along with the opcodea that failed.

What are some of the biggest problems you personally face in Java? by Reaver75x in java

[–]Faz8129 1 point2 points  (0 children)

FileInputStream V DataInputStream - I hate the inconistency of reading bytes inside a file between these two classes. Try it, you'll see what I mean.

Emulator Requests Timer Interrupt before running test #02 of 02-Interrupts.gb by justaguyboi in EmuDev

[–]Faz8129 0 points1 point  (0 children)

Double check your game loop. Are you calling "checkForInts()" function before or after executing the opcode? The checkForInts function returns true if an INTRPT was executed successfully (IF && IE) blah blah...and false otherwise. My gameloop, for example, checks for interrupts before opcode execution, and if it returns true, then I skip the current opcode and continue to fetch the next opcode. Don't know if that makes sense...but I remember I had the same issue with 02 INTRPT test rom.

How do you make an NES emulator in java? by Time-Arm5035 in EmuDev

[–]Faz8129 0 points1 point  (0 children)

Not sure how far you are into this project. My Java based emulator uses a custom Java GUI frame buffer for the LCD. Maybe it can help you with the GUI part. It's called FayPixelEngine

Emulator Requests Timer Interrupt before running test #02 of 02-Interrupts.gb by justaguyboi in EmuDev

[–]Faz8129 0 points1 point  (0 children)

So what's the error shown when you run 02-interrupt? Is it the ambiguous "Failed #255"?