Which prints the letter "A" once in the colour you choose. This is a handy tutorial, but I would like to be able to print the entire screen text (i.e more than one string) in the same colour. Anyone have any ideas?
Color text-mode memory lies at segment 0xb800 and is 4000 bytes
in length 80*25*2 cuz each visible character on the screen
is accompanied by a text attribute byte.
00000000 Text Attribute Byte
The low-nibble defines the foreground and the high-nibble
the background, and there is a way to disable the blink
Function 9 - Output Char And Attribute At Hardware Cursor
To clear the screen to one f/b color try this code:
mov dx, 0 ; Set cursor to top left-most corner of screen
mov bh, 0
mov ah, 0x2
mov cx, 2000 ; print 2000 chars
mov bh, 0
mov bl, 0x21 ; green bg/blue fg
mov al, 0x20 ; blank char
mov ah, 0x9
write a C++ program which take inputs from the user/keyboard and calculate his ZAKAT.
get the input from user may include
-Amount invested in business
-Amount given to other business partners as loan
-Amount payable to others
I made a prime number finder, it finds the nearest prime that is above and below any integer (Does not work that well with giant numbers.)
Made this in cpp.sh
Why would I need the x=y+1-1;?
x=y; just doesnt seem to work
Why is this?
And I know my coding ...