Jump to content

Loops/Infinite: Difference between revisions

no edit summary
(Zig version)
No edit summary
Line 100:
string .as "SPAM",#13,#10,#0
.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}}==
One way:
1,489

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.