machine-language

6502 CPU Emulation

Its the weekend, so I relax from spending all week programming by writing a hobby project. I wrote the framework of a MOS 6502 CPU emulator yesterday, the registers, stack, memory and all the opcodes are implemented. (Link to source below) I can manually run a series of operations in the debugger I wrote, but I'd like to load a NES rom...

Can someone tell me the very basics of how computer programming works?

Basically, my question is what makes all the words of a programming language actually do anything? I mean, what's actually happening to make the computer know what all of those words mean? If I verbally tell my my computer to do something, it doesn't do it, because it doesn't understand. So how exactly can these human words written into ...

Best resource for serious Commodore 64 programming.

What is the best resource for serious Commodore 64 programming? Assume that serious programming on the Commodore 64 is not done in BASIC V2 that ships with the Commodore 64. I feel like most of the knowledge is tied up in old books and not available on the internet. All that I have found online are either very beginner style introduct...

Where can I find assembler instruction specification info for the Motorola 68000?

I'm looking for information for machine language instruction encoding formats for the Motorola 68000 processor. I have used the The Motorola Mc68000 Microprocessor Family: Assembly Language, Interface Design, and System Design book for this before, but I no longer own a copy of the book. Does anyone know where I can find this informati...

Looking for some input on my C++ program. Simpletron, Machine language.

Edit: So, seems I do have a problem somewhere in my coding. Whenever I run the program and input a variable, it always returns the same answer.."The content at location 76 is 0. Okay guys, I posted on here a few days ago about a question but it was just a compilation error, so if this looks familiar, thats why. I will reiterate, I'm new...

I asked this yesterday, after the input given I'm still having trouble implementing..

I'm not sure how to fix this or what I did wrong, but whenever I enter in a value it just closes out the run prompt. So, seems I do have a problem somewhere in my coding. Whenever I run the program and input a variable, it always returns the same answer.."The content at location 76 is 0." On that note, someone told me that "I don't kno...

Conditional Move on the PowerPC

Is there a conditional-move-equivalent on the PowerPC (32 or 64) instruction set? It can obviously be emulated using a conditional branch, but I want something that outperforms that. ...

PowerPC moving to variable SPR

Hi, I'm writing an assembly macro to a C-program, and being quite new with this I have gotten stuck on something. I'm trying to write a macro for moving data from a general purpose register to a special purpose register. My problem is that the syntax I've found to move data from a GPR to an SPR takes a constant SPR value, while I want ...