This commit is contained in:
Colton G. Rushton 2022-06-24 14:05:25 +00:00 committed by GitHub
commit 6b9ae7817e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -1577,7 +1577,7 @@ def create_movement_commands(debug=False):
if type(cmd) == str:
cmd = [cmd]
cmd_name = cmd[0].replace(" ", "_")
params = {"id": byte, "size": 1, "end": byte is 0x47, "macro_name": cmd_name}
params = {"id": byte, "size": 1, "end": byte == 0x47, "macro_name": cmd_name}
params["param_types"] = {}
if len(cmd) > 1:
param_types = cmd[1:]

View File

@ -1,11 +1,10 @@
#author: Bryan Bishop <kanzure@gmail.com>
#date: 2012-01-02
#url: http://hax.iimarck.us/files/rbheaders.txt
from __future__ import print_function
import json
import os
from __future__ import print_function
#parse hex values as base 16 (see calculate_pointer)
base = 16