3 package Nasm
::Regs
::Format
::FC
;
7 my $filename = $regs->filename;
10 /* automatically generated from $filename - do not edit */
15 const int32_t nasm_reg_flags[] = {
19 my @names = $regs->names;
22 for my $name (@names){
23 my $reg = $regs->Register($name)->AssemblerClass;
24 $out .= sprintf(" %-15s /* %-5s */\n", $reg, $name)
36 print "/* automatically generated from $file - do not edit */\n\n";
37 print "#include \"tables.h\"\n";
38 print "#include \"nasm.h\"\n\n";
39 print "const int32_t nasm_reg_flags[] = {\n";
40 printf " 0,\n"; # Dummy entry for 0
41 foreach $reg ( sort(keys(%regs)) ) {
42 # Print the class of the register
43 printf " %-15s /* %-5s */\n",
44 $regs{$reg}.',', $reg;