Newest Hacks

Final Fantasy IV - Critical Hit Fix NBA Jam 2K17 - Overtime Edition Karnov Rage Mega Man X2 MSU-1 v2.0

Newest Translations

Majin Tensei II: Spiral Nemesis Metal Max No Image Available Super Off-Road

Newest Utilities

FE9 Message Tool Command-Line Pack v1.03 Dino archiver DKC Randomizer

Newest Documents

Documents

Newest Reviews

Noobow Lufia II: Rise of the Sinistrals EasyType F-Zero Nebula Highway F-Zero Nebula Highway

Newest Homebrew

Block Dude Into the Blue RI Probe Star Evil

Featured Hack Images

Metroid: Wart's Invasion SMK Limited 18 Super Metroid Underworld Fire Pro Wrestling 2 Restoration

Featured Translation Images

Bastard!!: Ankoku no Hakaishin Shin Megami Tensei Ninja Gaiden II: The Dark Sword of Chaos Shodai Nekketsu Kouha Kunio-kun

Recent Updates

Automatic Line-Wrap Example ASM

Source Code

Description:

This is some source code to a automatic word-wrap hack from KingMike’s Translations Shell Monsters Story translation. It was useful as the translation had used some long names and it would have been difficult to format the line-breaks used in the original code to make good use of available window space with all possible situations.

It can be useful if a game buffers a full text window to RAM before it outputs to the screen, as this routine shifts around the text in the time between.

It was found in 2014 on a floppy disk from 2003, then rewritten to use as example code. It is uncertain if this code is the final tested code, as KingMike tended to plan his NES ASM hacks in text documents but insert in hex, and may not have updated all changes to his code. Still this should be good at least for concept-understanding purposes.

Links:

User Review Information

No User Reviews!