Newest Hacks

F-Zero Beginnings Power Rangers - The Movie FastROM Kamikaze Mario DX+ Faxanadu Robust

Newest Translations

Dr. Chaos Sword of the Berserk - Guts' Rage Astyanax Urban Strike

Newest Utilities

Mystic Editor Sable Text Inserter Jade Cocoon Randomizer Final Fantasy IV Tweak

Newest Documents

Documents

Newest Reviews

Strange Mario Bros. Rockman CX SOR2 Fight'n Rage SMW Autosave + Disable 2 Players + DKCR Status Bar

Newest Homebrew

Game Boy Advance RGB Colour Test (GBA) Plummet Challenge Game Carpet Shark Lost in Space

Featured Hack Images

The Adventures of Lolo 3: Map Hack Blades of Steel - Swiss NLA Edition Prince of Persia - Miracles Don't Exist Final Fantasy: Mystic Quest - EasyType

Featured Translation Images

Eggerland: Meikyuu no Fukkatsu Lufia & the Fortress of Doom Marvelous: Mouhitotsu no Takarajima Power Blade 2

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!