Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Hey, my OS is in 16-bit and unfortuantley, I can never remember any of the colour codes. Do any of you have a chart of colours or something that might help?
Thanks
~Touch
"We cannot trust the sword in the hands of a n00b!" - Southpark
you can define colors as variables, like: blue db 1 ant then use it. it may be a bit bit bit bit slower because of an access to memory bet you later you can just use notepad function REPLACE
xsix wrote:you can define colors as variables, like: blue db 1 ant then use it. it may be a bit bit bit bit slower because of an access to memory bet you later you can just use notepad function REPLACE
if you're really worried about performance (the delay would be on the order of 5 nanoseconds - in case of a cache miss on a recent computer, which you won't have because your code most likely is smaller than the cache) you can use equ instead of db. db reserves space for it (a byte to be exact) and equ just tells the assembler that blue would be equal to 1. It's then equally fast.