Difference between revisions of "84PCSE:RAM:A015"
From WikiTI
(curFGColor) |
m (... and wrong category too. oops.) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | [[Category:84PCSE:RAM:By Address|A015 - curFGColor]] [[Category: | + | [[Category:84PCSE:RAM:By Address|A015 - curFGColor]] [[Category:84PCSE:RAM:By Name|curFGColor]] |
== Synopsis == | == Synopsis == | ||
'''Unofficial Name:''' curFGColor | '''Unofficial Name:''' curFGColor | ||
Line 10: | Line 10: | ||
== Comments == | == Comments == | ||
− | This is used by [[84PCSE:BCALLs:44F8|PutMap]], [[84PCSE:BCALLs:44FB|PutC]], and many other system routines that call PutMap and PutC, such as [[84PCSE:BCALLs:4501|PutS]], [[84PCSE:BCALLs:4507|PutPS]], and [[84PCSE:BCALLs:44FE|DispHL]]. | + | This is used by [[84PCSE:BCALLs:44F8|PutMap]], [[84PCSE:BCALLs:44FB|PutC]], and many other system routines that call PutMap and PutC, such as [[84PCSE:BCALLs:4501|PutS]], [[84PCSE:BCALLs:4507|PutPS]], and [[84PCSE:BCALLs:44FE|DispHL]]. It only has an effect if the [[84PCSE:Flags:4A#Bit_4|putmapDrawColor]] flag is set. |
Colors are represented as a 5-6-5 value (5 bits of red, 6 bits of green, 5 bits of blue.) For example, <span style="color: #f00">00000</span><span style="color: #0c0">011111</span><span style="color: #00f">00000</span>b, or 03E0h, would be dark green. <span style="color: #f00">11111</span><span style="color: #0c0">000000</span><span style="color: #00f">11111</span>b, or 0F81Fh, would be bright magenta. | Colors are represented as a 5-6-5 value (5 bits of red, 6 bits of green, 5 bits of blue.) For example, <span style="color: #f00">00000</span><span style="color: #0c0">011111</span><span style="color: #00f">00000</span>b, or 03E0h, would be dark green. <span style="color: #f00">11111</span><span style="color: #0c0">000000</span><span style="color: #00f">11111</span>b, or 0F81Fh, would be bright magenta. |
Latest revision as of 19:52, 1 April 2013
Synopsis
Unofficial Name: curFGColor
Memory Address: A015h
Length: 2 bytes
Stores the current foreground color for fixed-width text display routines.
Comments
This is used by PutMap, PutC, and many other system routines that call PutMap and PutC, such as PutS, PutPS, and DispHL. It only has an effect if the putmapDrawColor flag is set.
Colors are represented as a 5-6-5 value (5 bits of red, 6 bits of green, 5 bits of blue.) For example, 0000001111100000b, or 03E0h, would be dark green. 1111100000011111b, or 0F81Fh, would be bright magenta.