;*************************************************************************
; Funky OS
;*************************************************************************
bits 32
org 0x00
	;; We should have been loaded at 0100:0000
	mov ax, 0x0100
	mov ds, ax
	mov es, ax
	mov fs, ax
	mov gs, ax

	mov si, osname
	call DisplayMessage
	popa
	ret
	
DisplayMessage:
	  lodsb                                       ; load next character
          or      al, al                              ; test for NUL character
          jz      .DISPLAYDONE
          mov     ah, 0x0E                            ; BIOS teletype
          mov     bh, 0x00                            ; display page 0
          mov     bl, 0x6F                            ; text attribute
          int     0x10                                ; invoke BIOS
          jmp     DisplayMessage
.DISPLAYDONE:
	  ret
	
	osname db 0x0D, 0x0A, "F C   O S", 0x00
	rammsg db " System Ram:	",0x00
	buffer db "          ",0x00
	reboo  db "Press any key to reboot...",0x00
