Sample code for .kasm in kFS has an error

Plazma

Member
Messages
37
Reaction score
38

Game Version​

2026.11.16.5901

Operating System​

Windows 11

What Happened​

When you create a .kasm file, the default code that is created with it has an error on line 12

What Was Expected​

The code should be able to compile

Reproduction Steps​

  1. open kFS
  2. create a new .kasm file
  3. press ctrl+s (updates the diagnostic tab)

Reproduction Rate​

always

Additional Info​

; New kASM program. Assemble with kfs build, load with kfs load, run with kfs start then kfs tick or kfs run.
.include <kfs.kinc>
.include <vehicle.kinc>
.tick_hz 10
.format f_hello "hello from tick %u"

.task main rate_hz=10
.func main
.local lbuf, f_hello.size, 8
ADDRL lbuf
LDG sys.tick
STW
PUSH16 f_hello
ADDRL lbuf
SYSCALL SVC_LOG
RET 0
.endfunc

error message:
Screenshot 2026-11-17 150040.png
Screenshot 2026-11-17 150106.png
 
Upvote 0
Back
Top