"The first blow is half the battle." - Oliver Goldsmith, 'She Stoops to Conquer'
Created: 12th September 1999
Last Modified: 27th November 1999
This page will show you how to enter, assemble and run a program using Assembly Studio.
The program listed below is a very simple assembly program that will display 'Hello World' on the screen five times.
Source: hello5.asm
Compiled: hello5.86p
#include "ti86asm.inc" .org _asm_exec_ram call _clrScrn ; Clear screen, cursor to top left call _homeup ld b,5 ; Loop counter becomes five LoopStart: ld hl,StartOfText ; hl points to text call _puts ; Display text pointed to by hl call _newline ; New line djnz LoopStart ; Loop back to LoopStart, decrease counter call _pause ; Wait for [ENTER] to be pressed call _clrScrn ; Clear screen, cursor to top left call _homeup ret ; Return from program StartOfText: .db "Hello World",0 .end
You don't need to understand this program - it will be explained later.
To run this program, follow these steps:
![]() |
![]() |
| How to run the program | Program being run |