6468 Commits
Author SHA1 Message Date
David Anderson ea6e82d79a committed new stack modification method
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40122
2006-10-15 23:31:09 +00:00
David Anderson 2c65e42379 reorganized the tracker to be a bit more modular
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40121
2006-10-15 20:57:14 +00:00
David Anderson 6f2ebd8da7 separated this from the rest
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40120
2006-10-15 20:26:51 +00:00
David Anderson 785173578b committed new header
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40119
2006-10-12 00:27:47 +00:00
David Anderson 6adba4b731 changed error defines to have "ERROR" instead of "ERR"
added and verified sysreq.c which is generated on -O0

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40118
2006-10-12 00:27:18 +00:00
David Anderson fb7942ee4d and you thought you'd never see the day.. sysreq.n verified!
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40117
2006-10-11 23:47:04 +00:00
Borja Ferrer c06a526165 not needed
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40116
2006-10-10 17:53:42 +00:00
David Anderson d328933cc5 marked switch and casetbl as verified
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40115
2006-10-10 17:33:05 +00:00
David Anderson 8fe4440b10 fixed non-sequential not having a correct default case
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40114
2006-10-10 17:32:09 +00:00
David Anderson 9bc1279af1 fixed casetbl not being aligned correctly
fixed bitshifting the wrong way (oops!)

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40113
2006-10-10 17:22:28 +00:00
David Anderson f62af67279 small touch-ups
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40112
2006-10-10 16:39:55 +00:00
David Anderson d2cb27e20c added simple test procedure to VM and updated some context stuff for stack checking
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40111
2006-10-10 02:06:50 +00:00
David Anderson 4b6c4f11af added DLL exports (it builds now!)
rewrote error checking mechanism
fixed some opcode cases not being right
fixed various opcode and codegen bugs
fixed stack alignment problems
made proc aligned to a dword
fixed up helpers naming scheme
started marking opcodes as either working or not working
probably more -- too much to list

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40110
2006-10-10 01:55:08 +00:00
David Anderson bc22a3bc84 finalized structures I think
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40109
2006-10-10 00:39:45 +00:00
David Anderson 5eec9f6dff moved # of params error message back to an actual error
fixed a bug in the peephole optimizer

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40108
2006-10-10 00:39:19 +00:00
David Anderson fb9234eb86 oh
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40107
2006-10-06 17:05:07 +00:00
David Anderson cfcb4d288b - param count pushed is now cell based, not byte based
- removed .. for cases

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40106
2006-10-06 17:03:33 +00:00
David Anderson c6f60dbd6c added op.call
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40105
2006-10-05 01:03:54 +00:00
David Anderson ea6c73dcb3 added jump for zero cases
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40104
2006-10-01 21:06:50 +00:00
David Anderson 47dadb6cd6 added experimental implementation of switch
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40103
2006-10-01 21:05:07 +00:00
Borja Ferrer 39abe7776d helper functions turn
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40102
2006-09-28 19:33:58 +00:00
Borja Ferrer 84a75be487 fixed the EBP bug in ungen opcodes and fixed other code generation bugs
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40101
2006-09-28 15:11:41 +00:00
Borja Ferrer 0b9cdfeddd switched DAT and STK registers
fixed the EBP encoding mess
(more to come for ungen opcodes and helpers)

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40100
2006-09-28 11:21:45 +00:00
Borja Ferrer 8669bbd4a8 compilation errors
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4099
2006-09-24 18:04:18 +00:00
David Anderson 55b590cb8e reorganized ungen opcode stuff
fixed mislabeled ungen ops, then added appropriate notes
added executable memory functions to API
compilation results in an sp_context_t, not a BaseContext now
renamed FreeContextVars() to FreeContext()
other minor changes

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4098
2006-09-24 06:17:10 +00:00
Borja Ferrer b1c6a06d15 added UNSUPPORTED defines and context setup code
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4097
2006-09-23 23:37:40 +00:00
David Anderson 968692755b merged in the easy relocation requiring opcodes
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4096
2006-09-23 04:11:01 +00:00
Borja Ferrer 845ae65797 fixes here and there
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4095
2006-09-22 21:38:58 +00:00
Borja Ferrer 96505c8e60 fixed a LEA macro
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4094
2006-09-22 12:41:08 +00:00
Borja Ferrer f454b114cb organising stuff a bit
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4093
2006-09-22 11:52:48 +00:00
Borja Ferrer 80688365a2 organising stuff s bit
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4092
2006-09-22 11:52:19 +00:00
David Anderson 1bf17b05bb sketched out break opcode
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4091
2006-09-21 05:04:51 +00:00
David Anderson 9ba07e4b28 added cmps, bounds, halt, and other fixes/additions
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4090
2006-09-21 02:58:59 +00:00
David Anderson 2ada767528 committed ret/retn
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4089
2006-09-21 01:48:19 +00:00
David Anderson 894ac3c513 added heap opcode and check function
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4088
2006-09-20 23:33:40 +00:00
Borja Ferrer fa75903642 more div stuff
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4087
2006-09-20 22:17:52 +00:00
Borja Ferrer 82cb24e40b div opcodes
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4086
2006-09-20 22:12:55 +00:00
David Anderson fb39f34d4b committed op.stack
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4085
2006-09-20 21:23:48 +00:00
David Anderson ae9c2187cb implemented op.sctrl
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4084
2006-09-20 20:29:28 +00:00
David Anderson 240d29846c committed OP_LCTRL for some reason
added setpos() to JIT helpers

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4083
2006-09-20 20:11:02 +00:00
Borja Ferrer 6e15ece954 bye to the slow xchg
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4082
2006-09-20 18:19:31 +00:00
David Anderson 0503ac73b7 implemented some more opcode
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4081
2006-09-20 15:51:05 +00:00
David Anderson 1577897925 I'm proud to present the first non-backpatched error checking routine!
all of this is untested

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4080
2006-09-20 08:44:21 +00:00
David Anderson 824beee935 Wrote the JIT execution function
Solidified some more code

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4079
2006-09-20 07:07:49 +00:00
David Anderson 3cdf54e7e9 fixed AMX_INFO_FRM being used instead of AMX_REG_INFO
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4078
2006-09-20 04:52:13 +00:00
David Anderson 7d0bb14848 added some more macro opcodes
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4077
2006-09-20 04:14:53 +00:00
David Anderson 7b3530de67 imported all finished opcodes that do not require jumping/relocation
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4076
2006-09-20 03:56:24 +00:00
David Anderson f7df595ca5 note! we're still not at the point of a build
committed here to fill in more structural integrity

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4075
2006-09-20 02:56:20 +00:00
David Anderson 45aa735928 initial recleaning of this mess, preparing for merge of JIT proper
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4074
2006-09-20 01:59:56 +00:00
David Anderson 302636d5e0 test dummy import of JIT structure
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%4073
2006-09-20 00:41:24 +00:00