Please enable JavaScript.
Coggle requires JavaScript to display documents.
Compiler (Fill linked list redcode_data (Fill char *memo (Check if name…
Compiler
Fill linked list redcode_data
Fill char *memo
Check if name exist in op_t
Find char code
Determine bool index
Determine bool mask
Determine int binary _mask
Fill linked_list parameters
Check if parameter is coordinate with op.c and good_size
Determine size instruction
Fill struct head
Complete the int magic
Complete the comment
Complete the name
Check size not too long
Check if .name or .comment exist
Write in file .cor
Write header
Write name
write prog_size
Write comment
Write int_magic
Write redcode_data
Write char code
Write binary_mask if bool mask == true
write parameters
Write one byte if bool reg == true
Write 2 byte if (bool dir == true && bool index == true) || bool ind == true
Write 4 bytes if bool dir == true && bool index == false
Complete prog_size in struct header
Complete int nb < 0
Linked list redcode_data
Linked list parameters
Char code
Int binary_mask
Char *memo
Bool index
Bool mask
Size instruction
Char *rule
Int line_in_optab
Linked list parameters
Bool reg
Bool dir
Bool ind
Char *instruct
int nb