Skip to content

Commit

Permalink
Improve lint
Browse files Browse the repository at this point in the history
  • Loading branch information
twizmwazin committed Aug 20, 2024
1 parent 81f0e03 commit 2a127cb
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions angr_platforms/ct64/ct64_angr.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
import logging
import struct

import angr
import archinfo
import claripy
import cle
import archinfo
import logging
import struct

from .ct64_engine import UberEngineWithCT64K

l = logging.getLogger('angr.ct64k')

def load_rom(rom):
return angr.Project(rom, main_opts={'backend': CT64KBlob, 'arch': ArchCT64K(), 'base_addr': 0x1000, 'entry_point': 0x1000}, engine=UberEngineWithCT64K)
return angr.Project(
rom,
main_opts={'backend': CT64KBlob, 'arch': ArchCT64K(), 'base_addr': 0x1000, 'entry_point': 0x1000},
engine=UberEngineWithCT64K
)

class ArchCT64K(archinfo.Arch):
def __init__(self, endness=archinfo.Endness.BE):
super(ArchCT64K, self).__init__(endness)
super().__init__(endness)

name = 'CT64K'
bits = 16
Expand Down Expand Up @@ -63,7 +68,7 @@ def __init__(self, project):
0x200: (hard_200_rd, hard_200_wr),
0x201: (hard_201_rd, hard_201_wr),
}
super(SimCT64K, self).__init__(project, 'ct64k')
super().__init__(project, 'ct64k')

def configure_project(self):
pass
Expand All @@ -73,7 +78,7 @@ def state_blank(self, addr=None, **kwargs):
addr = 0x1000

permissions_backer = (True, {(0, 0xffff): 7})
state = super(SimCT64K, self).state_blank(addr=addr, permissions_backer=permissions_backer, **kwargs)
state = super().state_blank(addr=addr, permissions_backer=permissions_backer, **kwargs)

state.register_plugin('registers', state.memory)
state.memory.id = 'reg'
Expand Down

0 comments on commit 2a127cb

Please sign in to comment.