view lib/alib/is_lower.as @ 3286:b9d9e3e53107

rules.mak: Whitespace fixes
author Tormod Volden <debian.tormod@gmail.com>
date Thu, 18 Jun 2020 23:55:13 +0200
parents 03f26e88b809
children
line wrap: on
line source

*****************************************

* See if character in "B" is a lowercase letter

* OTHER MODULES NEEDED: none

* ENTRY: B=character to test

* EXIT: CC zero=1 if lowercase, 0 if not

 nam Is Char. Lowercase?
 ttl Assembler Library Module


 section .text


IS_LOWER:
 cmpb #'a 
 blo no not lowercase, zero cleared
 cmpb #'z if equal, zero set
 bhi no not lowc, zero cleared
 orcc #%00000100 set zero

no
 rts

 endsect