' Send the message Hello World to the serial port from NanoCore12 ' 2/20/2009 by Carl Barnes ' It is written in SBASIC. ' To compile this file, you need to invoke the following commands: ' sbasic simple4.bas /c4000 /v3800 /s3f80 /m6812 > simple4.asm ' as12 simple4.asm include "reg9s12c.lib" ' PORT definitions and constants for 9S12C family of MCUs declare n Main: rem Initialize the serial port and transmit message. poke scibdh, 26 ' Setup serial port for 9600 baud pokeb scicr2,$0c ' Enable Receive and Transmit pins print "Hello World!\n\r" do ' loop forever loop end