Actions

Editing IC10

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 60: Line 60:
  
 
=== Examples ===
 
=== Examples ===
 +
Stationeers online IC10 Emulators:
 +
* https://ic10.dev/
 +
* https://ic10emu.dev
  
 
Here are some examples demonstrating all three operations:
 
Here are some examples demonstrating all three operations:
Line 596: Line 599:
 
main:
 
main:
 
yield
 
yield
#read plant data from the Tray
+
#read plant data from the Tray
 
ls r0 dTray 0 Mature
 
ls r0 dTray 0 Mature
#harvestable plants return 1, young plants return 0
+
#harvestable plants return 1, young plants return 0
#nothing planted returns -1
+
#nothing planted returns -1
 
beq r0 -1 plantCrop
 
beq r0 -1 plantCrop
 
beq r0 1 harvestCrop
 
beq r0 1 harvestCrop
 
ls r0 dTray 0 Seeding
 
ls r0 dTray 0 Seeding
#seeds available returns 1, all seeds picked returns 0
+
#seeds available returns 1, all seeds picked returns 0
#plants too young or old for seeds returns -1
+
#plants too young or old for seeds returns -1
 
beq r0 1 harvestCrop
 
beq r0 1 harvestCrop
 
j main
 
j main
  
 
plantCrop:
 
plantCrop:
#stop the planting if no seeds available
+
#stop the planting if no seeds available
#otherwise it will plant nothing repeatedly
+
#otherwise it will plant nothing repeatedly
 
ls r0 dHarvie 0 Occupied
 
ls r0 dHarvie 0 Occupied
 
beq r0 0 main
 
beq r0 0 main
Line 711: Line 714:
 
=Links=
 
=Links=
 
----
 
----
* Stationeers online IC10 Emulators so you can develop your code without repeatedly dying in game
+
* [https://stationeering.com/tools/ic] Stationeering.com offers a programmable circuits simulator so you can develop your code without repeatedly dying in game!
** [https://ic10.dev/] Stationeers Code Simulator
 
** [https://ic10emu.dev] Stationeers IC10 Editor & Emulator - A feature packed code editor for Stationeers IC10 code, paired with a robust debugger and emulator. Edit, test, and share code.
 
** [https://stationeering.com/tools/ic] Stationeering provides a simulation of the IC10 chip inside Stationeers. IDE with error checking, full visibility of stack and registers.
 
 
* [http://www.easy68k.com/] EASy68K is a 68000 Structured Assembly Language IDE.
 
* [http://www.easy68k.com/] EASy68K is a 68000 Structured Assembly Language IDE.
 
* [https://marketplace.visualstudio.com/items?itemName=Traineratwot.stationeers-ic10] syntax highlighting for IC10 MIPS for Visual Studio Code (updated Feb 10th 2022)
 
* [https://marketplace.visualstudio.com/items?itemName=Traineratwot.stationeers-ic10] syntax highlighting for IC10 MIPS for Visual Studio Code (updated Feb 10th 2022)

Please note that all contributions to Unofficial Stationeers Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Unofficial Stationeers Wiki:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)