; bare.asm ; A machine with no operating system on it at all. ; ; THIS IS THE POINT OF LOADING AN ORDINARY IMAGE. The second stage does not know what ; CosmOS is; it knows what a boot image is, and this is one. So a program that wants the ; whole machine to itself - no shell, no filesystem, no services - is not a special case ; needing a special path. It is a file, written under CosmOS like any other, and started by ; naming it in /System/Boot/boot.cfg. ; ; It owns everything from address zero upward, and the only thing it can be sure of is the ; console, because that is all it asked for. ; ; Written by Anachronaut #Program start: SETD.0 Said sayLoop: LDA.0 BRA sayDone OUTA 0x00 INCD.0 BRI sayLoop sayDone: HALT #Data Said: "bare metal: no system, just this " #Vectors Boot start