Skip to main content

New answers tagged

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\...
Noel Whitemore's user avatar
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 ...
Wisblade's user avatar
  • 205
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 ...
Peter B.'s user avatar
  • 4,531
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 ...
supercat's user avatar
  • 39.2k
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 ...
Peter Cordes's user avatar
  • 3,567
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 ...
Jim Leonard's user avatar
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 ...
SoronelHaetir's user avatar
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 ...
Justme's user avatar
  • 37.2k
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 ...
bjb's user avatar
  • 17.3k
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 ...
njuffa's user avatar
  • 1,611
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 ...
PanJanek's user avatar
  • 181

Top 50 recent answers are included