Terminal control/Coloured text: Difference between revisions
Content deleted Content added
Terminal control/Coloured text en True BASIC |
Puppydrum64 (talk | contribs) |
||
Line 13: | Line 13: | ||
* How to cause blinking or flashing (if supported by the terminal) |
* How to cause blinking or flashing (if supported by the terminal) |
||
<br><br> |
<br><br> |
||
=={{header|8086 Assembly}}== |
|||
{{works with|MS-DOS}} |
|||
Prints the letter 'A' to the screen in bright cyan (color 11 in VGA) |
|||
<lang asm> .model small |
|||
.stack 1024 |
|||
.data |
|||
.code |
|||
start: |
|||
mov ax,@data |
|||
mov ds,ax |
|||
mov ax,@code |
|||
mov es,ax |
|||
cld ;String functions are set to auto-increment |
|||
mov ax,13h ;select 320x200 VGA |
|||
int 10h |
|||
mov ah,0Eh |
|||
mov al,'A' ;select char to print |
|||
mov bx,11 ;select color to print it in |
|||
int 10h |
|||
ExitDOS: |
|||
mov ax,4C00h ;return to dos |
|||
int 21h |
|||
end start</lang> |
|||
=={{header|AArch64 Assembly}}== |
=={{header|AArch64 Assembly}}== |
||
{{works with|as|Raspberry Pi 3B version Buster 64 bits}} |
{{works with|as|Raspberry Pi 3B version Buster 64 bits}} |