Commit Graph

196 Commits

Author SHA1 Message Date
EDiasAlberto
fd165aae47 create helper function to handle label offsets 2024-06-14 19:55:32 +01:00
EDiasAlberto
16e52a9421 fix directive value parsing 2024-06-14 16:52:48 +01:00
EDiasAlberto
6aa93c79ae fix indexing error with parsing branch operands 2024-06-14 16:42:42 +01:00
sBubshait
d1815c0cce Fix Bug in handling wide moves shift scalar 2024-06-14 02:01:40 +01:00
sBubshait
f3e1c1f150 Add handling of all aliases. Add Shift Utility Function 2024-06-14 02:00:10 +01:00
GDBWNV
0815d5b6f6 fix for widemove 2024-06-13 21:07:58 +01:00
EDiasAlberto
9507180dc9 fix str/ldr classification logic to avoid incorrect array indexing 2024-06-13 20:43:57 +01:00
EDiasAlberto
f5d35ce246 fix classification logic for str/ldr 2024-06-13 20:36:12 +01:00
GDBWNV
3104da7f30 dpr multiply 2024-06-13 20:25:26 +01:00
sBubshait
04df4ea795 Update Parser to fix bug in parsing multiply 2024-06-13 20:06:37 +01:00
EDiasAlberto
6bd993b29e fix dpregister to construct IR 2024-06-13 20:01:35 +01:00
GDBWNV
228bfec612 more changes to wide moves 2024-06-13 19:57:26 +01:00
GDBWNV
9a92efc3f3 changes to wide move 2024-06-13 19:52:53 +01:00
sBubshait
ed6ff9ba92 Update the tokenizer to skip whitespaces 2024-06-13 19:26:40 +01:00
EDiasAlberto
16fb04b737 fix tokenising of dpimmediate shifts 2024-06-13 19:25:22 +01:00
sBubshait
fb15dc90c6 Fix Bug in Parser for an error checking 2024-06-13 19:20:02 +01:00
sBubshait
ded57032ce Update encode for a small bug in the numbering 2024-06-13 19:08:25 +01:00
sBubshait
ba41986b7b Fix Bug in the naming of the file 2024-06-13 19:06:05 +01:00
sBubshait
38951db9c8 Restructure encode into a separate module 2024-06-13 19:04:49 +01:00
EDiasAlberto
664f8e6478 build struct for DPRegister arithmetic 2024-06-13 19:01:39 +01:00
sBubshait
cea9590621 Update Encoding DP Register for readability 2024-06-13 18:40:17 +01:00
EDiasAlberto
873c0b60cb add hex number handling to getoperandnumebrs 2024-06-13 18:37:36 +01:00
Dias Alberto, Ethan
eed22f64d9 Merge branch 'assembler' into 'assembler-e'
# Conflicts:
#   src/parser.c
2024-06-13 16:28:14 +00:00
sBubshait
31fa1392e1 Restructring the assembling into binary, add helper funcs 2024-06-13 17:25:17 +01:00
sBubshait
995c6d02fa Rewrite the parser for better structure, Add DPI parsing 2024-06-13 17:24:09 +01:00
sBubshait
38e5cd06fa Add tokeniser.c to make parsing easier 2024-06-13 17:23:30 +01:00
EDiasAlberto
6ddf18be96 fix halt command encoding 2024-06-12 20:40:38 +01:00
EDiasAlberto
c52de918db build struct for loadstore instructions 2024-06-12 20:22:08 +01:00
EDiasAlberto
344f455be3 fix loadreg struct construction 2024-06-12 19:25:05 +01:00
Dias Alberto, Ethan
2571554e9e Merge branch 'Assembler-G' into 'assembler'
Assembler g

See merge request lab2324_summer/armv8_43!16
2024-06-12 18:05:39 +00:00
GDBWNV
2714830117 DPR arithmetic 2024-06-12 18:58:54 +01:00
GDBWNV
51283891bd DPR logic 2024-06-12 18:28:49 +01:00
sb3923
5221189304 Merge branch 'assembler-s' into 'assembler-e'
Assembler s

See merge request lab2324_summer/armv8_43!14
2024-06-12 16:49:36 +00:00
Dias Alberto, Ethan
6c1be8e1ef Merge branch 'assembler-e' into 'assembler-s'
# Conflicts:
#   src/parser.c
2024-06-12 16:49:17 +00:00
sBubshait
fab4047d22 Update fileio, skip new lines 2024-06-12 17:48:23 +01:00
GDBWNV
b8f3ded0af DPR multiplication 2024-06-12 17:39:37 +01:00
EDiasAlberto
06b18706ed rewrite opcode/operand splitting logic 2024-06-12 17:34:14 +01:00
GDBWNV
18df8e0fe4 DPI wide move 2024-06-12 17:26:49 +01:00
GDBWNV
31b5174b20 corrections to arithmetic DPI 2024-06-12 17:13:48 +01:00
GDBWNV
f5dabe26b2 DPI arithmetic 2024-06-12 17:06:20 +01:00
EDiasAlberto
53f5b05210 rewrite uses of strcpy w/ S 2024-06-12 17:02:52 +01:00
GDBWNV
3290896f6e add, adds, cmn 2024-06-12 16:55:30 +01:00
EDiasAlberto
9f92eb4766 fix tokeniseOperands param order 2024-06-12 16:54:38 +01:00
sb3923
b3a108d3a3 Merge branch 'assembler-e' into 'assembler-s'
Assembler e

See merge request lab2324_summer/armv8_43!13
2024-06-12 15:47:50 +00:00
EDiasAlberto
f4fd71a330 fix syntax error with getOperandNumber 2024-06-12 16:46:59 +01:00
GDBWNV
28b38f4a80 small update, sync helper function 2024-06-12 16:39:33 +01:00
EDiasAlberto
c6ff7e1c4e comment getOperandNumber 2024-06-12 16:29:29 +01:00
Dias Alberto, Ethan
f1270144fa Merge branch 'assembler' into 'Assembler-G'
Assembler

See merge request lab2324_summer/armv8_43!11
2024-06-12 15:26:57 +00:00
Niedringhaus, George
5d03e78802 Merge branch 'assembler-e' into 'assembler'
create helper function to generate number from operand

See merge request lab2324_summer/armv8_43!12
2024-06-12 15:26:40 +00:00
EDiasAlberto
f32304afb7 create helper function to generate number from operand 2024-06-12 16:24:42 +01:00