MegaProcessor

Timeline
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

50 most recent check-ins

2015-10-22
17:54
Made function Error independent of Warn. Leaf check-in: 1b3f350d14 user: jos tags: trunk
16:56
Added warning when Immediate-format operand for LD.B instruction evaluates to word-size with MSB != 0. check-in: 8b4d99ed90 user: jos tags: trunk
12:28
Make the stack+offset instructions accept '+' as well as ',' check-in: 1a38e93721 user: jos tags: trunk
09:17
Completed instructions LD.B LD.W ST.B and ST.W check-in: 260a245f88 user: jos tags: trunk
2015-10-12
18:00
Implemented LSL,ASL,ROL,ROXL instructions. (xxR variants are still open) check-in: 6036736179 user: jos tags: trunk
12:36
moved a file out of the way. check-in: 68539753e6 user: jos tags: trunk
2015-10-09
10:28
Typo-fix in .WT part of the 0xd8..0xdb postbyte table. check-in: ade7e89880 user: jos tags: trunk
10:11
Added table with postbytes for instructions 0xd8..0xdb (shifts/rotates) Have script `tools/gen_bitops.lua` leave a signature in its output. check-in: 37476051d2 user: jos tags: trunk
2015-10-06
17:12
Flagged all opcode-instructions that still return dummy byte values. check-in: eb9ed1ec92 user: jos tags: trunk
16:55
Fixed small typo for postbyte range 0xb0..0xb3. check-in: 6bcf6e60d4 user: jos tags: trunk
2015-09-25
13:00
Implemented all 8 '.WT' shift/rotate instructions. check-in: 7b9445a7e9 user: jos tags: trunk
2015-09-24
17:08
Implemented translation of the BCHG,BCLR,BSET,BTST instructions. Todo, have '#' mode accept symbols besides of decimals. check-in: 5479a8adb6 user: jos tags: trunk
2015-09-22
14:48
Making instructions ld.[bw] and st.[bw] do the right thing. check-in: d58b8e25e9 user: jos tags: trunk
11:38
A little bit of cleanup. check-in: 69958f5974 user: jos tags: trunk
2015-09-19
17:59
Added operand evaluation with symbol-table lookup, TODO: integrate it with the appropriate opcode-generating functions. In this commit, only "jmp start" gets assembled correctly. check-in: 8d5232f487 user: jos tags: trunk
2015-08-22
18:12
DRYed up the output of listing-file lines. check-in: dcc9eecbd2 user: jos tags: trunk
17:59
Have the EQU directive only handled in pass 1, and fix a list-file issue for the ORG directive. check-in: 34e6793e25 user: jos tags: trunk
16:18
A little extra in the symbol-table dump : decimal format besides hex. check-in: 6dba3c8041 user: jos tags: trunk
16:17
Attempted improvements on handling of db, dw, dl directives. check-in: 8769e987b7 user: jos tags: trunk
2015-08-20
22:46
Started to split the translation process in 2 separate passes. check-in: d3fe8703aa user: jos tags: trunk
21:20
Properly report the (impropable) case of an empty symbol table. check-in: 78c4228b9b user: jos tags: trunk
13:20
Moved handling of source-line errors from lua function to own function, which always prints the number of the faulty source-line. check-in: 756d4d80c3 user: jos tags: trunk
2015-08-15
14:00
Added a tool to directly print the mnemonic form of the bit-oriented instructions. Changed dis_d8_db.lua to make 'require' work again. check-in: 4f89728dfa user: jos tags: trunk
2015-08-14
21:22
First stab at processing of lables and symbols. check-in: 3e524fe20d user: jos tags: trunk
14:16
Moved the generator-script dis_d8_db to 'tools', added functionality to skip printing the redundant instructions. check-in: 65f2d4419c user: jos tags: trunk
11:29
Prettyfied the format of the List-file output. check-in: 6aee36cd9f user: jos tags: trunk
10:43
Added ProgramCounter and Symbol table functionality. check-in: ff3e1a01ea user: jos tags: trunk
10:12
Corrected ihex checksum calculation, investigated on bit_op redundant ranges. check-in: d1e029084f user: jos tags: trunk
2015-08-13
13:00
Restructured some tests involving ihex records and bitwise operations. check-in: 19c2dad8e4 user: jos tags: trunk
12:07
DRYed up most io.write(string.format(...)) things, and some other cleanup. check-in: a639fc9186 user: jos tags: trunk
2015-08-11
23:19
Added logic to calculate the length of an instruction. check-in: 0791033629 user: jos tags: trunk
21:50
Added opcode for NOP_x (0xc5) check-in: 2acd1fa545 user: jos tags: trunk
14:49
This fixes the ST.B (sp,0xvv),Rx problem. The second field is captured as everything between balanced parenteses, (including a ','). check-in: b37e57a31d user: jos tags: trunk
13:50
Tried to duplicate the good work for instruction LD.B to instruction ST.B This version generates the same bytes for ST.B (SP,0xVV),Rx and ST.B 0xWWWW,Rx The trouble seems to be in string "(SP,0xVV)" not being kept together due to the ','; This needs to be fixed in another place. check-in: 9741453f2c user: jos tags: trunk
2015-08-09
21:43
Improvements on LD.B instruction (which can be 1, 2, or 3 bytes long) check-in: 25ab0cb1a1 user: jos tags: trunk
15:48
Added aliases INC and DEC. check-in: a83761cb23 user: jos tags: trunk
13:41
moved a one-off test-tool out of the way. check-in: 4ddbdf4b00 user: jos tags: trunk
2015-08-07
14:50
Moved ihex-generating functions into their own separate module. Added some cleverness to allow tables as well as strings on ihex_datarecord() check-in: 30305c1cdb user: jos tags: trunk
2015-08-03
21:58
Moved executables to new subdirectory 'bin'. check-in: 4c181d3d35 user: jos tags: trunk
21:48
Bug-fix: have the test in isReg actually call the error() function. check-in: 956565c236 user: jos tags: trunk
21:00
Refactored some things, using functions in new module lib.lua check-in: 5ce49e15aa user: jos tags: trunk
2015-07-31
22:06
Eliminated all the print-statements from 'opcodes.lua', Cleanup of the list-file output. check-in: 8a5653ef25 user: jos tags: trunk
14:02
Added sp handling to MOVE instruction, and rudimentary handling of JMP/JSR operands. check-in: 8fa71e963b user: jos tags: trunk
2015-07-30
16:10
A picture says more than 0x3e8 words :-) Added a drawing to illustrate the relations between the MegaProcessor's registers. check-in: cb73d9315a user: jos tags: trunk
14:39
This version assembles about half of the instructions, good moment to commit :-) check-in: b07bb1c70e user: jos tags: trunk
2015-07-29
16:01
More and more opcodes are now evaluated correctly. check-in: 2dacb66e8e user: jos tags: trunk
2015-07-17
21:03
yet another small tool. check-in: 9b1ea624ff user: jos tags: trunk
12:10
Replaced a couple of print-statements to skeleton return statements. Eventually, each function must return 1, 2, or 3 bytes corresponding to the assembly-language instruction. check-in: 4b1a7e15eb user: jos tags: trunk
2015-07-16
23:33
More trial stuff, but it seems to be going in the right direction. check-in: 841b5c7a4b user: jos tags: trunk
2015-07-15
16:20
Incomplete release.. Added some trial stuff. check-in: 2a4605e430 user: jos tags: trunk