/ "Hello world" - prints a string to stdout. mov pc,r1 / Current address clrb r1 / We know we start at a page boundry add $62,r1 / Magic offset into this code mov $15,-(sp) / Non kernel library 104434 / trap #0 add $2,sp / Fix the stack mov r0,r2 / r2 now base in nk jump table mov 6(r2),r3 / Entry point of function 3 mov r1,r0 / Address of string mov $1,r1 / 1=stdout jsr pc,(r3) / LIB_string_out rts pc / ...and finish <\nHello world\n\0>