Hello WorldΒΆ

A minimal Tiny8 program demonstrating basic structure.

 1; Hello World - Store ASCII string "HELLO" in memory
 2; Demonstrates basic memory store operations
 3; Output: RAM[0x60..0x64] contains "HELLO" in ASCII
 4
 5start:
 6    ldi r16, 0x60     ; Base address
 7    
 8    ldi r17, 72       ; 'H'
 9    st r16, r17
10    inc r16
11    
12    ldi r17, 69       ; 'E'
13    st r16, r17
14    inc r16
15    
16    ldi r17, 76       ; 'L'
17    st r16, r17
18    inc r16
19    
20    st r16, r17       ; 'L' (reuse value)
21    inc r16
22    
23    ldi r17, 79       ; 'O'
24    st r16, r17
25
26done:
27    jmp done          ; infinite loop (halt)

This program demonstrates the simplest possible Tiny8 program structure with initialization and an infinite loop.