Cups
Members-
Content Count
138 -
Last visited
-
This is a bump
-
This is a bump
-
This is a bump
-
https://www.xluq.xyz (I made this shit in 1h pls no judge)
-
Hi, I have a lot of BTC to exchange to Skrill or Paysafecard. Conditions : - You must be trusted on cracked.to or nulled.to. - I take 10% Fees. - I have nothing against using a middleman, but the fees are for you. - If you use Paysafecard, i'll need it to come from France. :hype:
-
[supreme] Help with C# implementation of ASM - SBC.
Cups replied to Cups's topic in C#, C++ & VB.net
No, I understand everything about the emulator but I just need someone to check the implementation of the half carry flag -
So I'm implementing a gameboy CPU in C# to make an emulator. And I need someone good in ASM to check an implementation I make which I have a doubt on. The OPCODE 0x9F translates to instruction SBC (source here http://www.pastraiser.com/cpu/gameboy/gameboy_opcodes.html) so substract with carry. I just need someone to check my implementation, like @mesvak cause apparently he knows ASM. Right now I have this made : /// /// Substract n + carry flag from A. /// /// n private static void sbc(byte r1) { // TODO Double check this implementation uint substractResult = (uint)Gameboy.Cpu.Registers.A - r1 - Convert.ToUInt32(Gameboy.Cpu.Registers.F.C); // Set zero flag if result is 0. Gameboy.Cpu.Registers.F.Z = ((byte)substractResult) == 0; // Set half-carry flag if no borrow from bit 4. IM UNSURE ABOUT THIS. This should mean if result is 0b0001_0000, we have a carry, but is it really how to implement it? Gameboy.Cpu.Registers.F.H = ((Gameboy.Cpu.Registers.A ^ r1 ^ substractResult) & 0x10) != 0; // Set the carry flag if no borrow at all 0b0001_0000_0000 (so more than 8 bits) Gameboy.Cpu.Registers.F.C = ((substractResult & 0x100) != 0); // The substract flag is set as we performed a sub op. Gameboy.Cpu.Registers.F.N = true; }
-
I have the solution. You are making a call to xNet trying to post form data to an url. So what you did is xNet.HttpRequest.Post("www.test.com", postData); Unfortunately, xNet thinks that you are trying to send the file located at the path [postData] (Look at the stack trace, the arguments are : Leaf.xNet.HttpRequest.Post(String address, String path)). Therefore, to fix this you need to change the HttpRequest.Post("www.test.com", postData) to HttpRequest.Post("www.test.com", postData, "application/x-url-form-encoded"); Post Data is "str" in your code, it looks like JSON so you may need to change "application/x-url-form-encoded" to "application/json" (string str = string.Concat(new string[] { "{\"email\":\"", naam, "\",\"password\":\"", wachtwoord, "\"}" }); )
-
https://gyazo.com/5933f87ae0430c4f49c1a54e9349e202 payment proof hehe https://www.blockchain.com/btc/tx/b2b2866e383b012cd0988a18b0808cc6f4e77ebb632d3c71b2e93070c0e20cbd https://www.blockchain.com/btc/tx/45580f2e415b300008c986e9863fc4d764f1ddb008d0913b2d94cad5ef589c5c
-
@Xoda @TimeChangeEverything Congrats boys, buying you supreme right now.