X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=example.f;h=499f468773c06f4163b393900b4a70b1f6143662;hb=61b721d365efaaae4d5ebb8d13972faa697be54b;hp=2443f3264f6d852188f7249cfc1555b4f0539f84;hpb=a6faff31f03d96b6a62188f330848004119d5165;p=rrq%2Fjonasforth.git diff --git a/example.f b/example.f index 2443f32..499f468 100644 --- a/example.f +++ b/example.f @@ -10,16 +10,24 @@ DUP 4 PICK = UNTIL DROP SWAP DROP SWAP DROP ; ( a+b ) -S" HELLO-ADDR" CREATE -S" Hello!" DUP ROT -STORE-STRING -: HELLO - ' HELLO-ADDR LIT, TELL NEWLINE ; +: HELLO S" Hello!" TELL NEWLINE ; -HELLO +: TEST-FIB + S" 10 FIB = " TELL + 10 FIB .U + SPACE S" (Expected: 59)" TELL NEWLINE ; -S" 10 FIB = " TELL -10 FIB .U -S" (Expected: 59)" TELL NEWLINE +\ This example calls the Blt() function on UEFI's Graphics Output Protocol. See +\ the UEFI specification and uefi.f for more information. +: BLUE-SQUARE + GraphicsOutputProtocol + HERE @ 255 C, 0 C, 0 C, 0 C, \ Buffer with single blue pixel + EfiBltVideoFill + 0 0 \ Source + 100 100 20 20 \ Destination + 0 + GOP.Blt() ; -TERMINATE +HELLO +TEST-FIB +BLUE-SQUARE