Mercurial > hg > Members > kono > nitros9-code
view lib/alib/strhlen.as @ 3154:d29a92fff7f2
coco3fpga: Rename SD disk images to .img
To avoid confusion since they are not bootable disks,
but to be raw copied to the /sd0 partition on the
CoCo3FPGA SD card.
author | Tormod Volden <debian.tormod@gmail.com> |
---|---|
date | Tue, 07 Feb 2017 00:37:28 +0100 |
parents | 03f26e88b809 |
children |
line wrap: on
line source
********************************** * String Length: find length of sign-bit terminated string. * note: sign-bit set byte IS included in count. * OTHER MODULES NEEDED: none * ENTRY: X=start of string * EXIT: D=length * all other regs (except cc) preserved nam Find sign-bit term. String Length ttl Assembler Library Module section .text STRHLEN: pshs x clra it'll be at least one byte long clrb loop addd #1 bump count tst ,x+ end? bpl loop puls x,pc endsect