Commit Graph

3329 Commits

Author SHA1 Message Date
Simon Robertshaw
224d646297 Compiler: Fix label generation 2013-02-14 09:40:15 +00:00
Simon Robertshaw
4e1ea552f1 More VM callable functions 2013-02-13 20:59:11 +00:00
Simon Robertshaw
14991cba5f Enforce cdecl calling convention for callable code, global variables, symbol table for exporting programmes 2013-02-09 13:44:09 +00:00
Simon Robertshaw
f3cfa6106b Inform GCC of clobbered registers 2013-02-02 21:10:56 +00:00
Simon Robertshaw
f7b734de0b Better checking for coordinates in GET instruction, empty particles are id'd -1 2013-02-02 16:46:50 +00:00
Simon Robertshaw
316e940e53 Clean up VM and Lua loading functions 2013-02-02 14:46:45 +00:00
Simon Robertshaw
487647645e Don't backup esi/edx registers as there's no way of adjusting variable position on the stack, yet 2013-02-02 01:56:56 +00:00
Simon Robertshaw
acb126e162 More type conversion and enforcement 2013-02-02 01:31:19 +00:00
Simon Robertshaw
1e535a160d Merge 2013-02-01 20:25:48 +00:00
Simon Robertshaw
187bf11d3d tointeger and tofloat instructions. Detection and implicit conversion of number types 2013-02-01 15:21:21 +00:00
Simon Robertshaw
833cbf9b77 Merge 2013-01-31 23:43:11 +00:00
Simon Robertshaw
004710fcea Keep track of variable types 2013-01-31 23:35:16 +00:00
Simon Robertshaw
b1944dfda1 Remove old testing code 2013-01-31 22:41:24 +00:00
Simon Robertshaw
15503177a8 Correct compilation of JNE instruction 2013-01-31 20:58:48 +00:00
Simon Robertshaw
8fb020c59e Return from procedures, correctly address variables in nested scopes, make space for the return address from the callers stack 2013-01-30 23:44:05 +00:00
Simon Robertshaw
ca7c0d777b Working X86 JIT compilation/execution 2013-01-30 18:11:06 +00:00
Simon Robertshaw
c4e5e82fec Work on X86 native compiler 2013-01-28 00:08:22 +00:00
Simon Robertshaw
486d26e40b Allow limited arm size from tmp2 2013-01-26 19:44:05 +00:00
Simon Robertshaw
03fde95719 Fix issue where piston won't push particles at index 0 2013-01-26 18:56:19 +00:00
Simon Robertshaw
631e49b8b7 Piston fix: Adjust colour and prevent piston from pushing too far when there's empty space 2013-01-26 18:04:24 +00:00
Simon Robertshaw
12e3802bf4 Put back default piston size 2013-01-26 17:16:58 +00:00
Simon Robertshaw
8e689fdd08 Merge branch 'master' of github.com:FacialTurd/The-Powder-Toy 2013-01-26 17:15:02 +00:00
Simon Robertshaw
3e60181dbe Piston collapses spaces properly 2013-01-26 17:14:44 +00:00
jacob1
46b767da0c clear persistent effects when it's display mode is removed 2013-01-25 23:15:33 -05:00
jacob1
1d97f1c985 typing '~' doesn't close the lua console 2013-01-25 22:57:51 -05:00
jacob1
4f59211ba8 Fix brush not being visible when using CTRL to change the size 2013-01-25 22:45:23 -05:00
jacob1
ea38fc2d86 fix possible crash with LIGH 2013-01-23 21:54:15 -05:00
jacob1
c5eecff131 fix "i" argument to graphics functions.
Also, they don't overwrite the default one, you can pass in nil to tpt.element/graphics_func for the function to restore the original.
2013-01-23 16:48:21 -05:00
Simon Robertshaw
7475a49e0b Fix piston retraction 2013-01-23 19:52:45 +00:00
Simon Robertshaw
6c89c63a44 PSTN: Do not accept current from diagonals, increase distance for spark checks 2013-01-23 19:20:52 +00:00
Simon Robertshaw
0034dd654e Fix FRME limits 2013-01-23 19:17:11 +00:00
Simon Robertshaw
412e13a03e Merge branch 'master' of github.com:FacialTurd/The-Powder-Toy 2013-01-23 12:39:08 +00:00
Simon Robertshaw
da12cc6d46 Change to pistons, piston push length is base-1 blocks 2013-01-23 12:38:53 +00:00
Simon Robertshaw
a7aa26fa1a Added FRME - A solid that keeps its simple structure when pushed by piston 2013-01-23 12:36:31 +00:00
Simon Robertshaw
00cf48b520 Fully functional pistons, retract+extend 2013-01-23 12:06:06 +00:00
jacob1
07aade6c4c fix crash when pressing enter to open a save, and not logged in. Fix CRAY description 2013-01-23 00:26:57 -05:00
Simon Robertshaw
28fdb32bfb Clean up some unused variables from PSTN.cpp 2013-01-22 22:42:52 +00:00
Simon Robertshaw
527a7a1ca6 Merge branch 'master' of https://github.com/FacialTurd/The-Powder-Toy 2013-01-22 20:08:50 +00:00
Simon Robertshaw
f1e51ba9bc Small fixes to Sconscript 2013-01-22 20:08:36 +00:00
jacob1
392271a269 fix tpt.set_property setting integers above 255, fix fs.isDir/File, add "Color" as valid property for elements api, fix tpt.display_mode to match tpt, other minor changes 2013-01-21 20:19:34 -05:00
Simon Robertshaw
9fb3e75f93 PSTN.cpp - Remove unused code 2013-01-20 23:08:50 +00:00
Simon Robertshaw
fde0233ea8 Pistons - WIP, No retraction yet 2013-01-20 23:08:16 +00:00
Simon Robertshaw
87d6553413 C-RAY: Similar to A-RAY, creates particles 2013-01-20 14:34:07 +00:00
jacob1
226a85a18d attempt to fix random deletion bug (can't reproduce easily, so can't tell if it's fixed easily) 2013-01-19 23:02:12 -05:00
jacob1
267cf9281b Update Build number 2013-01-19 17:40:25 -05:00
Simon Robertshaw
e7b174a78d Revert "move version info to version.h, no longer needs full recompile on version change"
This reverts commit b3a2ab735b.
2013-01-19 22:00:56 +00:00
jacob1
b493788b26 fix missing #ifdef statement breaking compiling when not on linux 2013-01-19 11:46:21 -05:00
jacob1
7d5cb361f0 fix error with renderer compiling 2013-01-18 14:50:06 -05:00
jacob1
8e7dfb20e9 Merge branch 'master' of git@github.com:FacialTurd/The-Powder-Toy.git 2013-01-18 14:38:05 -05:00
jacob1
ded94b475d move clipboard functions out of misc.cpp without creating errors 2013-01-18 14:37:24 -05:00