User Tools

Site Tools


hello_world

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

hello_world [2017/07/03 21:04] (current)
z00m created
Line 1: Line 1:
 +====== Hello World example ======
  
 +<​code>​
 +;​---------------------------------------------------------------------------
 +;​---Standard header for OSCA and FLOS --------------------------------------
 +;​---------------------------------------------------------------------------
 +
 +include "​equates\kernal_jump_table.asm"​
 +include "​equates\OSCA_hardware_equates.asm"​
 +include "​equates\system_equates.asm"​
 +
 +;​==========================================================================
 +
 + org $5000
 +
 +
 + ld hl,​my_text ;​ location of ASCII string
 + call kjt_print_string ;​ use OS print ascii string routine
 +   
 + xor a ; show no error on return ​
 + ret ; back to FLOS
 +
 +;​--------------------------------------------------------------------------
 +
 +my_text db "Hello World!",​10,​13,​0 ;​ Text followed by <​CR+LF>​ and zero
 +
 +;​----------------------------------------------------------------------------
 +;----- End of program ​ ------------------------------------------------------
 +;​----------------------------------------------------------------------------
 +</​code>​
hello_world.txt ยท Last modified: 2017/07/03 21:04 by z00m