Newest Hacks

Final Fantasy 5 Passive Sprint and Learning OutLast Xiaoyu in green costume Strider 1 & 2 Restorations

Newest Translations

Zhen Jia Hou Wang Pokémon: Yellow Version - Special Pikachu Edition Strider Returns: Journey From Darkness Strider Returns: Journey From Darkness

Newest Utilities

RomPatcher.js Byte manager Apoplexy Apoplexy

Newest Reviews

Rockman 2000 Thousand-Year Door+ Super Mario Bros. 3 - Ridley X Hack Fatal Fury 2 - Enhanced Colors

Newest Homebrew

Climber 5 Cave 1K Splatform 2600 MashyMashy

Featured Hack Images

Castlevania - Legends: Speed Hack Super Mario Bros. and the 32 Lost Levels Jester's Challenge Super Mario World - Master Quest 6 - The Adventure of Mario

Featured Translation Images

1991 Du Ma Racing Bishoujo Senshi Sailor Moon Super S: Fuwa Fuwa Panic Batman Returns

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!