Loops/Infinite: Difference between revisions
Content added Content deleted
(Zig version) |
Puppydrum64 (talk | contribs) No edit summary |
||
Line 100: | Line 100: | ||
string .as "SPAM",#13,#10,#0 |
string .as "SPAM",#13,#10,#0 |
||
.en</lang> |
.en</lang> |
||
=={{header|8086 Assembly}}== |
|||
This example works in MS-DOS. |
|||
<lang asm>Spam: |
|||
mov ah,02h |
|||
mov dl,'S' ;VASM replaces a character in single quotes with its ascii equivalent |
|||
int 21h ;Print Char routine |
|||
mov dl,'P' |
|||
int 21h |
|||
mov dl, 'A' |
|||
int 21h |
|||
mov dl, 'M' |
|||
int 21h |
|||
mov dl,13 ;Carriage Return |
|||
int 21h |
|||
mov dl,10 ;New Line |
|||
int 21h |
|||
jmp Spam</lang> |
|||
=={{header|8th}}== |
=={{header|8th}}== |
||
One way: |
One way: |