Fixed bug in doc generator

This commit is contained in:
Dominic Grimm 2022-06-17 18:53:38 +02:00
parent 528025d0ff
commit 258a6a4bd3

View file

@ -29,7 +29,7 @@ Opcode | Name
<% output = " " + output unless output.blank? -%> <% output = " " + output unless output.blank? -%>
Opcode | Argument | Stack Opcode | Argument | Stack
---|---|--- ---|---|---
`0x<%= sorted_opcodes.find! { |opc| opc[1].name == opcode.name }[0].to_s(16).rjust(2, '0') %>` | <%= opcode.arg && "`#{opcode.arg}`" %> | <%= (opcode.stack.input.size > 0 && opcode.stack.output.size > 0) ? "`#{input}--#{output}`" : nil %> `0x<%= sorted_opcodes.find! { |opc| opc[1].name == opcode.name }[0].to_s(16).rjust(2, '0') %>` | <%= opcode.arg && "`#{opcode.arg}`" %> | <%= (opcode.stack.input.size > 0 || opcode.stack.output.size > 0) ? "`#{input}--#{output}`" : nil %>
<%- if opcode.example -%> <%- if opcode.example -%>
```gnuassembler ```gnuassembler