FreeBASIC — Änderungen 2919 → 3207

Zeile 7: Zeile 7:
 
DIM hello AS BYTE POINTER
 
DIM hello AS BYTE POINTER
  
−
video = &Hb8000
+
video = CAST(BYTE POINTER, &Hb8000)
  
 
hello = strptr("Hello world")
 
hello = strptr("Hello world")
Zeile 23: Zeile 23:
  
 
ASM
 
ASM
 +
_start:
 +
    call fb_ctor__kernel
 +
    jmp $
 +
 
fb_RtInit:
 
fb_RtInit:
 
     ret
 
     ret
Zeile 36: Zeile 40:
  
 
<pre>fbc -c kernel.bas
 
<pre>fbc -c kernel.bas
−
ld -Ttext=0x100000 kernel.o -o basic.krn</pre>
+
ld -Ttext=0x100000 kernel.o -melf_i386 -o basic.krn</pre>
  
 
== Weblinks ==
 
== Weblinks ==