fork download
  1. #define int word
  2.  
  3. @ Reduces value at A by 1 and returns new value
  4. word fn(word pointer A)
  5. *A = *A - 1
  6. return *A
  7.  
  8. @ Entry point of the program
  9. task main()
  10. @ Declare a 16 bit integer of value 4
  11. word X = 4
  12.  
  13. @ Declare a pointer to a 16 bit integer pointing to X
  14. word pointer Y = &X
  15.  
  16. @ Increment X by 5
  17. X = *Y + 5
  18.  
  19. @ Call function which modifies X
  20. fn(&X)
  21.  
  22. @ Strings
  23. byte pointer s = "Hello World"
  24.  
  25. @ Conditionals
  26. if X > 0
  27. @ Standard library?
  28. print(s)
  29.  
  30. @ End execution
  31. kill()
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty