dotnes
dotnes copied to clipboard
PadInput sample that doesn't work yet
FYI, this is required to make F# Hello world working, since
while true do
()
produces
// loop start (head: IL_003a)
IL_003a: ldc.i4.1
IL_003b: brtrue.s IL_003a
// end loop
IL_003d: ret
Hello World in F#
open NES
open NES.NESLib
NESLib.pal_col(0uy,0x02uy) // set screen to dark blue
NESLib.pal_col(1uy,0x14uy) // fuchsia
NESLib.pal_col(2uy,0x20uy) // grey
NESLib.pal_col(3uy,0x30uy) // white
// write text to name table
NESLib.vram_adr(NESLib.NTADR_A(2uy, 2uy)) // set address
NESLib.vram_write "HELLO, WORLD!" // write bytes to video RAM
// enable PPU rendering (turn on screen)
NESLib.ppu_on_all()
// infinite loop
while true do
()
Yeah if F# is close to working, let me make a sample for it and make sure CI will test it! Maybe I’ll have some time in the next few days.