Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

DOS tool to convert letters in text file to upper/lowercase. (Miscellaneous)

posted by Doug E-mail, 30.10.2022, 08:47

One might potentially cook up a routine using the 80x86 opcode "XLAT":

XLAT Locates a byte entry in a table in memory, using the contents of the AL register as a table index, then copies the contents of the table entry back into the AL register. AL should contain the unsigned index into a table addressed by DS:BX (for an address-size attribute of 16 bits) or DS:EBX (for an address-size attribute of 32 bits). The operand to XLAT allows for the possibility of a segment override.

https://www.scs.stanford.edu/05au-cs240c/lab/i386/XLAT.htm

- Doug B.

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 146 users online (0 registered, 146 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum