Mercurial > hg > Members > kono > nitros9-code
view lib/alib/to_lower.as @ 3054:22ddd48b4ec2
level1 krn: Fix scheduler bug that only affected 6309
The original 6809 binary was correct, but it was disassembled
and interpreted wrongly, so that reassembly went wrong on 6309.
author | Tormod Volden <debian.tormod@gmail.com> |
---|---|
date | Sun, 25 Jan 2015 22:36:02 +0100 |
parents | 03f26e88b809 |
children |
line wrap: on
line source
*************************************************** * Convert character in "B" to lowercase * OTHER MODULES NEEDED: IS_UPPER * ENTRY: B=ascii value of character to convert * EXIT: B=ascii value of character in lowercase * Note: control codes, etc. are not effected. nam Convert Char to Lowercase ttl Assembler Library Module section .text TO_LOWER: pshs cc lbsr IS_UPPER only uppercase can be converted bne tolox no upper, exit addb #$20 make lowercase tolox puls cc,pc endsect