New answers tagged assembly
4
votes
Power PC G4 assembly language programming question
The following code works and the ori r0, r0, 0 section stops a segmentation fault after "Hello World" has been printed to the terminal:
.data
HelloWorldString:
.ascii "Hello World\...
1
vote
Was it really possible to damage my VGA card by programming it in assembly through its latches registers?
It must have been possible with "classic" VGA cards, the first ones, although I think it was much easier to damage the monitor than the graphics card itself.
On the other hand, with SVGA ...
3
votes
Fastest quasi-random function in 6502?
If you don’t care about the quality of your random numbers, the fastest and shortest algorithm is probably this algortihm for an 8-bit value (based on a posting by White Flame at Codebase64):
If you ...
1
vote
Fastest quasi-random function in 6502?
I'm a bit partial to--if I'm remembering how I did things:
lsr partOne
lda partTwo
rol
bcc okay
eor #$DB
sta partTwo
eor PartOne
5+3+2+(3 or 4)+3+3 = 20 cycles for code running from ROM and using ...
9
votes
Fastest quasi-random function in 6502?
If the number falls into one of the ranges you want to reject, a simple option is to just keep looping and generate another number. If you're considering a 256-byte table, though, you could I guess ...
10
votes
Was it really possible to damage my VGA card by programming it in assembly through its latches registers?
It was not possible to damage any VGA video card by sending it bad data to its registers. It was possible, however, to damage your VGA monitor if you set timing registers that the monitor could not ...
7
votes
Was it really possible to damage my VGA card by programming it in assembly through its latches registers?
Like the other answers, I don't know about the VGA card itself, but I do have personal experience with destroying a monitor with some kind of unexpected signal. In my case it was trying to use a PC ...
11
votes
Was it really possible to damage my VGA card by programming it in assembly through its latches registers?
It might have been possible of course, but I have never before heard such a warning that you can damage a VGA video card by programming the card registers incorrectly. In a way, anything could be ...
18
votes
Accepted
Was it really possible to damage my VGA card by programming it in assembly through its latches registers?
I don't think the answer is straight-forward, but I do think that there was some degree of "yes" buried in there.
For starters, it would depend on the video card that you were using. There ...
11
votes
Accepted
Is there a mistake in the code sample in “Programming the Z80” performing 16-bit by 8-bit division?
I own a paper copy of SYBEX's German translation of Zaks's book: Programmierung des Z80. It was published in 1985, the translator was Bernd Ploss. It contains the following version of the sample code ...
3
votes
Accepted
How to insert custom code into Super Mario Bros. NES file
SOLUTION
Finally:
at file offset 0x3328 (routine called after the level is completed) I replaced the original instruction:
JSR 9c03 ;20039c call subroutine LoadAreaPointer
with JSR to seemingly ...
Top 50 recent answers are included
Related Tags
assembly × 2506502 × 44
z80 × 32
programming × 29
commodore-64 × 24
ms-dos × 23
history × 18
x86 × 17
8080 × 14
8086 × 14
c × 11
apple-ii × 10
graphics × 10
instruction-set × 10
game-boy × 10
ibm-pc × 9
pdp-11 × 8
cc65 × 8
basic × 6
intel × 6
cp-m × 6
6800 × 6
hardware × 5
ibm × 5
cpu × 5