Mercurial > hg > Members > kono > nitros9-code
view lib/alib/to_non_sp.as @ 3149:afd0f7d9b514
Add the Sleuth multipass disassembler from Bud Pass
Added new directory "3rdparty/utiles/sleuth3" and source files to build
"sleuth3" and its utilities. Also added "sleuth3" to the Directories
section of "3rdparty/utils/makefile" to faciliate the inclusion of the
sleuth3 build.
author | Bill Pierce <merlinious999@gmail.com> |
---|---|
date | Sat, 04 Feb 2017 18:55:39 +0100 |
parents | 03f26e88b809 |
children |
line wrap: on
line source
********************************** * Advance X to 1st non-space character * OTHER MODULES NEEDED: none * ENTRY: X=somewhere in a string * EXIT: X=1st non-space character in string * B=char at X nam Advance to non-space ttl Assembler Library Module section .text TO_NON_SP: ldb ,x+ cmpb #$20 is it space? beq TO_NON_SP yes, loop leax -1,x point to non-space rts endsect