dotnes icon indicating copy to clipboard operation
dotnes copied to clipboard

PadInput sample that doesn't work yet

Open jonathanpeppers opened this issue 1 year ago • 3 comments

jonathanpeppers avatar Sep 20 '24 21:09 jonathanpeppers

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

kant2002 avatar May 10 '25 11:05 kant2002

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
  ()

kant2002 avatar May 10 '25 11:05 kant2002

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.

jonathanpeppers avatar May 11 '25 01:05 jonathanpeppers