hexsha
stringlengths 40
40
| size
int64 6
1.05M
| ext
stringclasses 3
values | lang
stringclasses 1
value | max_stars_repo_path
stringlengths 4
232
| max_stars_repo_name
stringlengths 7
106
| max_stars_repo_head_hexsha
stringlengths 40
40
| max_stars_repo_licenses
listlengths 1
7
| max_stars_count
int64 1
33.5k
⌀ | max_stars_repo_stars_event_min_datetime
stringlengths 24
24
⌀ | max_stars_repo_stars_event_max_datetime
stringlengths 24
24
⌀ | max_issues_repo_path
stringlengths 4
232
| max_issues_repo_name
stringlengths 7
106
| max_issues_repo_head_hexsha
stringlengths 40
40
| max_issues_repo_licenses
listlengths 1
7
| max_issues_count
int64 1
37.5k
⌀ | max_issues_repo_issues_event_min_datetime
stringlengths 24
24
⌀ | max_issues_repo_issues_event_max_datetime
stringlengths 24
24
⌀ | max_forks_repo_path
stringlengths 4
232
| max_forks_repo_name
stringlengths 7
106
| max_forks_repo_head_hexsha
stringlengths 40
40
| max_forks_repo_licenses
listlengths 1
7
| max_forks_count
int64 1
12.6k
⌀ | max_forks_repo_forks_event_min_datetime
stringlengths 24
24
⌀ | max_forks_repo_forks_event_max_datetime
stringlengths 24
24
⌀ | content
stringlengths 6
1.05M
| avg_line_length
float64 1.16
19.7k
| max_line_length
int64 2
938k
| alphanum_fraction
float64 0
1
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b1af12191a87a0f094f92427edcd08fabf1ca19f
| 27,377
|
asm
|
Assembly
|
examples/SymbOS_nslookup/src/symbos_lib-NetworkDaemon.asm
|
fengjixuchui/sjasmplus
|
df0fabd2411bf89e23637fce46d273f52dafbe16
|
[
"BSD-3-Clause"
] | 220
|
2016-10-22T19:44:39.000Z
|
2022-03-29T20:57:04.000Z
|
examples/SymbOS_nslookup/src/symbos_lib-NetworkDaemon.asm
|
ped7g/sjasmplus
|
487635c8057cd5594c372d9b70bc00a3f3a1ecc4
|
[
"BSD-3-Clause"
] | 153
|
2018-05-07T10:31:23.000Z
|
2022-03-30T04:35:59.000Z
|
examples/SymbOS_nslookup/src/symbos_lib-NetworkDaemon.asm
|
ped7g/sjasmplus
|
487635c8057cd5594c372d9b70bc00a3f3a1ecc4
|
[
"BSD-3-Clause"
] | 51
|
2016-05-12T21:27:36.000Z
|
2022-03-27T15:16:16.000Z
|
;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
;@ @
;@ S Y M B O S S Y S T E M L I B R A R Y @
;@ - NETWORK DAEMON FUNCTIONS - @
;@ @
;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
;Author Prodatron / SymbiosiS
;Date 11.07.2015
;This library supports you in using all network daemon functions.
;The existance of
;- "App_PrcID" (a byte, where the ID of the applications process is stored)
;- "App_MsgBuf" (the message buffer, 14 bytes, which are placed in the transfer
; ram area)
;- "App_BnkNum" (a byte, where the number of the applications' ram bank (0-15)
; is stored)
;is required.
;### SUMMARY ##################################################################
;; SyNet_NETINI ;...
;use_SyNet_NETEVT equ 0 ;check for network events
;use_SyNet_CFGGET equ 0 ;Config get data
;use_SyNet_CFGSET equ 0 ;Config set data
;use_SyNet_CFGSCK equ 0 ;Config socket status
;use_SyNet_TCPOPN equ 0 ;TCP open connection
;use_SyNet_TCPCLO equ 0 ;TCP close connecton
;use_SyNet_TCPSTA equ 0 ;TCP status of connection
;use_SyNet_TCPRCV equ 0 ;TCP receive from connection
;use_SyNet_TCPSND equ 0 ;TCP send to connection
;use_SyNet_TCPSKP equ 0 ;TCP skip received data
;use_SyNet_TCPFLS equ 0 ;TCP flush send buffer
;use_SyNet_TCPDIS equ 0 ;TCP disconnect connection
;use_SyNet_TCPRLN equ 0 ;TCP receive textline from connection
;use_SyNet_UDPOPN equ 0 ;UDP open
;use_SyNet_UDPCLO equ 0 ;UDP close
;use_SyNet_UDPSTA equ 0 ;UDP status
;use_SyNet_UDPRCV equ 0 ;UDP receive
;use_SyNet_UDPSND equ 0 ;UDP send
;use_SyNet_UDPSKP equ 0 ;UDP skip received data
;use_SyNet_DNSRSV equ 0 ;DNS resolve
;use_SyNet_DNSVFY equ 0 ;DNS verify
;### GLOBAL VARIABLES #########################################################
SyNet_PrcID db 0 ;network daemon process ID
;### GENERAL FUNCTIONS ########################################################
SyNet_NETINI
;******************************************************************************
;*** Name Network_Init
;*** Input -
;*** Output CF = Error state (0 = ok, 1 = Network daemon not running)
;*** - if CF is 0:
;*** (SyNet_PrcID) = Network daemon process ID
;*** Destroyed AF,BC,DE,HL,IX,IY
;*** Description ...
;******************************************************************************
ld e,0
ld hl,snwdmnt
ld a,(App_BnkNum)
call SySystem_PRGSRV
or a
scf
ret nz
ld a,h
ld (SyNet_PrcID),a
or a
ret
snwdmnt db "Network Daem"
if use_SyNet_NETEVT=1
SyNet_NETEVT
;******************************************************************************
;*** Name Network_Event
;*** Input -
;*** Output CF = Flag, if network event occured (1=no)
;*** - if CF is 0:
;*** A = Handle
;*** L = Status (1=TCP opening, 2=TCP established, 3=TCP
;*** close waiting, 4=TCP close,
;*** 16=UDP sending,
;*** 128=data received)
;*** IX,IY= Remote IP
;*** DE = Remote port
;*** BC = Received bytes
;*** Destroyed F,HL
;*** Description ...
;******************************************************************************
ld a,(App_PrcID)
db #dd:ld l,a
ld a,(SyNet_PrcID)
db #dd:ld h,a
ld iy,App_MsgBuf
rst #18 ;check for message
db #dd:dec l
scf
ret nz ;no message available
ld a,(App_MsgBuf)
cp MSR_NET_TCPEVT
jp z,snwmsgo_afbcdehlixiy
cp MSR_NET_UDPEVT
jp z,snwmsgo_afbcdehlixiy
scf ;senseless message
ret
endif
;### CONFIG FUNCTIONS #########################################################
if use_SyNet_CFGSET=1
SyNet_CFGGET
;******************************************************************************
;*** ID 001 (CFGGET)
;*** Name Config_GetData
;*** Input A = Type
;*** HL = Config data buffer
;*** Output CF = status (CF=1 invalid type)
;*** Destroyed AF,BC,DE,HL,IX,IY
;*** Description ...
;******************************************************************************
ld de,(App_BnkNum)
call snwmsgi_afdehl
db FNC_NET_CFGGET
jp snwmsgo_afhl
endif
if use_SyNet_CFGGET=1
SyNet_CFGSET
;******************************************************************************
;*** ID 002 (CFGSET)
;*** Name Config_SetData
;*** Input A = Type
;*** HL = New config data
;*** Output CF = status (CF=1 invalid type)
;*** Destroyed AF,BC,DE,HL,IX,IY
;*** Description ...
;******************************************************************************
ld de,(App_BnkNum)
call snwmsgi_afdehl
db FNC_NET_CFGSET
jp snwmsgo_afhl
endif
if use_SyNet_CFGSCK=1
SyNet_CFGSCK
;******************************************************************************
;*** ID 003 (CFGSCK)
;*** Name Config_SocketStatus
;*** Input A = first socket
;*** C = number of sockets
;*** HL = data buffer
;*** Output CF = status (CF=1 invalid range)
;*** Destroyed AF,BC,DE,HL,IX,IY
;*** Description ...
;******************************************************************************
ld de,(App_BnkNum)
call snwmsgi_afbcdehl
db FNC_NET_CFGSCK
jp snwmsgo_afhl
endif
;### TCP FUNCTIONS ############################################################
if use_SyNet_TCPOPN=1
;******************************************************************************
;*** ID 016 (TCPOPN)
;*** Name TCP_Open
;*** Input A = Type (0=active/client, 1=passive/server)
;*** HL = Local port (-1=dynamic client port)
;*** - if A is 0:
;*** IX,IY= Remote IP
;*** DE = Remote port
;*** Output CF = Error state (0 = ok, 1 = error; A = error code)
;*** - if CF is 0:
;*** A = Handle
;*** Destroyed F,BC,DE,HL,IX,IY
;*** Description Opens a TCP connection as a client (active) or as a server
;*** (passive). If it's an active connection you have to specify
;*** the remote IP address and port number as well.
;*** The local port number always has to be set. For client
;*** network applications you should set HL to -1 (65535) to get
;*** a dynamic port number. This will automaticaly generated by
;*** the network daemon in the range of 49152-65535 (official
;*** range for dynamic ports).
;*** This function will fail, if there is no free socket left.
;*** It returns the connection handle if it was successful.
;******************************************************************************
SyNet_TCPOPN
call snwmsgi_afbcdehlixiy
db FNC_NET_TCPOPN
jp snwmsgo_afhl
endif
if use_SyNet_TCPCLO=1
;******************************************************************************
;*** ID 017 (TCPCLO)
;*** Name TCP_Close
;*** Input A = Handle
;*** Output CF = Error state (0 = ok, 1 = error; A = error code)
;*** - if CF is 0:
;*** A = Handle
;*** Destroyed F,BC,DE,HL,IX,IY
;*** Description Closes a TCP connection and releases the used socket. It
;*** will not send a disconnect signal to the remote host (see
;*** TCPDIS). Use this, after the remote host already
;*** closed the connection.
;******************************************************************************
SyNet_TCPCLO
call snwmsgi_af
db FNC_NET_TCPCLO
jp snwmsgo_afhl
endif
if use_SyNet_TCPSTA=1
;******************************************************************************
;*** ID 018 (TCPSTA)
;*** Name TCP_Status
;*** Input A = Handle
;*** Output CF = Error state (0 = ok, 1 = error; A = error code)
;*** - if CF is 0:
;*** A = Handle
;*** L = Status (1=TCP opening, 2=TCP established, 3=TCP
;*** close waiting, 4=TCP close; +128=data received)
;*** - if L is >1:
;*** IX,IY= Remote IP
;*** DE = Remote port
;*** - if L is >=128:
;*** BC = Received bytes (which are available in the RX
;*** buffer)
;*** Destroyed F,H
;*** Description Returns the actual status of the TCP connection. Usually
;*** this is exactly the same as received in the last event
;*** message (see TCPEVT). The number of received bytes in BC
;*** may have been increased during the last event, if it was
;*** already larger than 0.
;******************************************************************************
SyNet_TCPSTA
call snwmsgi_af
db FNC_NET_TCPSTA
jp snwmsgo_afbcdehlixiy
endif
if use_SyNet_TCPRCV=1
;******************************************************************************
;*** ID 019 (TCPRCV)
;*** Name TCP_Receive
;*** Input A = Handle
;*** E = Destination bank
;*** HL = Destination address
;*** BC = Length (has to be >0)
;*** Output CF = Error state (0 = ok, 1 = error; A = error code)
;*** - if CF is 0:
;*** A = Handle
;*** BC = Number of transfered bytes (which have been copied
;*** to the destination)
;*** HL = Number of remaining bytes (which are still left in
;*** the RX buffer)
;*** ZF = 1 -> no remaining bytes (RX buffer is empty)
;*** Destroyed F,DE,HL,IX,IY
;*** Description Copies data, which has been received from the remote host,
;*** to a specified destination in memory. The length of the
;*** requested data is not limited, but this function will only
;*** receive the available one.
;*** Please note, that a new TCPEVT event only occurs on new
;*** incoming bytes, if this function returned HL=0 (no
;*** remaining bytes). It may happen, that during the last
;*** TCPEVT/TCPSTA status the number of remaining bytes has been
;*** increased, so you always have to check HL, even if you
;*** requested all incoming bytes known from the last status.
;******************************************************************************
SyNet_TCPRCV
call snwmsgi_afbcdehl
db FNC_NET_TCPRCV
jp snwmsgo_afbchl
endif
if use_SyNet_TCPSND=1
;******************************************************************************
;*** ID 020 (TCPSND)
;*** Name TCP_Send
;*** Input A = Handle
;*** E = Source bank
;*** HL = Source address
;*** BC = Length
;*** Output CF = Error state (0 = ok, 1 = error; A = error code)
;*** - if CF is 0:
;*** A = Handle
;*** BC = Number of transfered bytes
;*** HL = Number of remaining bytes (which couldn't be
;*** transfered, as the TX buffer is full at the moment)
;*** ZF = 1 -> no remaining bytes
;*** Destroyed F,DE,IX,IY
;*** Description Sends data to the remote host. The length of the data is
;*** not limited, but this function may send only a part of it.
;*** In case that not all data have been send, the application
;*** should idle for a short time and send the remaining part
;*** at another attempt.
;******************************************************************************
SyNet_TCPSND
call snwmsgi_afbcdehl
db FNC_NET_TCPSND
jp snwmsgo_afbchl
endif
if use_SyNet_TCPSKP=1
;******************************************************************************
;*** ID 021 (TCPSKP)
;*** Name TCP_Skip
;*** Input A = Handle
;*** BC = Length
;*** Output CF = Error state (0 = ok, 1 = error; A = error code)
;*** - if CF is 0:
;*** A = Handle
;*** Destroyed F,BC,DE,HL,IX,IY
;*** Description Skips data, which has been received from the remote host.
;*** This can be used if the application is sure, that the
;*** following bytes are not needed and the data transfer can be
;*** skipped to save resources. The amount of bytes must be
;*** equal or smaller than the total amount of received data.
;******************************************************************************
SyNet_TCPSKP
call snwmsgi_afbcdehl
db FNC_NET_TCPSKP
jp snwmsgo_afhl
endif
if use_SyNet_TCPFLS=1
;******************************************************************************
;*** ID 022 (TCPFLS)
;*** Name TCP_Flush
;*** Input A = Handle
;*** Output CF = Error state (0 = ok, 1 = error; A = error code)
;*** - if CF is 0:
;*** A = Handle
;*** Destroyed F,BC,DE,HL,IX,IY
;*** Description Flushes the send buffer. This maybe used to send data
;*** immediately, as some network hardware or software
;*** implementations may store it first in the send buffer for a
;*** while until it is full or a special amount of time has
;*** passed.
;******************************************************************************
SyNet_TCPFLS
call snwmsgi_af
db FNC_NET_TCPFLS
jp snwmsgo_afhl
endif
if use_SyNet_TCPDIS=1
;******************************************************************************
;*** ID 023 (TCPDIS)
;*** Name TCP_Disconnect
;*** Input A = Handle
;*** Output CF = Error state (0 = ok, 1 = error; A = error code)
;*** - if CF is 0:
;*** A = Handle
;*** Destroyed F,BC,DE,HL,IX,IY
;*** Description Sends a disconnect signal to the remote host, closes the
;*** TCP connection and releases the used socket. Use this, if
;*** you want to close the connection by yourself.
;******************************************************************************
SyNet_TCPDIS
call snwmsgi_af
db FNC_NET_TCPDIS
jp snwmsgo_afhl
endif
if use_SyNet_TCPRLN=1
;******************************************************************************
;*** ID 024 (TCPRLN)
;*** Name TCP_ReceiveLine
;*** Input A = Handle
;*** E = Destination bank
;*** HL = Destination address
;*** Output CF = Error state (0 = ok, 1 = error; A = error code)
;*** - if CF is 0:
;*** A = Handle
;*** D = Line length (-1=no complete line received, ZF=1)
;*** ZF = 1 -> no complete line received
;*** Destroyed AF,E,HL,IX,IY
;*** Description ...
;******************************************************************************
SyNet_TCPRLN_Buffer ds 256 ;buffer
SyNet_TCPRLN_Length db 0 ;length (always <255)
SyNet_TCPRLN
ld (snwrln3+1),a
ld a,e
add a:add a:add a:add a
ld (snwrlnb+1),a
ld (snwrlna+1),hl
call snwrln0
ld a,d
inc a
jr z,snwrln8
snwrln9 ld a,d
inc a
or a
snwrlnc ld a,(snwrln3+1)
ret
snwrln8 ld a,(SyNet_TCPRLN_Length)
ld c,a
ld b,0
cpl ;A=255-buflen
ld hl,SyNet_TCPRLN_Buffer
add hl,bc
ld c,a
snwrln3 ld a,0
ld de,(App_BnkNum)
call snwmsgi_afbcdehl ;receive data
db FNC_NET_TCPRCV
call snwmsgo_afbchl
ret c
ld hl,SyNet_TCPRLN_Length
ld a,(hl)
add c
ld (hl),a ;update buffer length
call snwrln0
jr snwrln9
snwrln0 ld a,(SyNet_TCPRLN_Length)
cp 255
ccf
sbc 0
ld d,-1
ret z
ld e,a ;e,bc=search length (max 254)
ld c,a
ld b,0
ld hl,SyNet_TCPRLN_Buffer
ld a,13
cpir
jr z,snwrln5
ld a,e
cp 254
ret c ;** not found and <254 chars -> no complete line received
inc d
snwrln4 call snwrln7 ;** not found and =254 chars -> send line anyway
ld d,254
ret
snwrln5 ld a,c ;** found -> HL=behind 13-char, BC=remaining length
or b
ld d,-1
ret z ;found at the last position -> no complete line received
ld d,1
ld a,10
cp (hl)
jr nz,snwrln6
inc d
snwrln6 ld bc,SyNet_TCPRLN_Buffer+1
or a
sbc hl,bc
ld e,l
push de
call snwrln7
pop de
ld d,e
ret
;e=line length, d=bytes to skip -> copy line to destination and remove it from the buffer
snwrln7 push de
ld d,0
ld hl,SyNet_TCPRLN_Buffer
push hl
add hl,de
ld (hl),0
pop hl
ld c,e
inc c
ld b,0
ld a,(App_BnkNum)
snwrlnb add 0
snwrlna ld de,0
rst #20:dw jmp_bnkcop
pop de
ld hl,SyNet_TCPRLN_Length
ld a,(hl)
sub e
sub d
ld (hl),a
ret z
ld c,a
ld b,0
ld a,e
add d
ld e,a
ld d,0
ld hl,SyNet_TCPRLN_Buffer
add hl,de
ld de,SyNet_TCPRLN_Buffer
ldir
ret
endif
;### UDP FUNCTIONS ############################################################
if use_SyNet_UDPOPN=1
;******************************************************************************
;*** ID 032 (UDPOPN)
;*** Name UDP_Open
;*** Input A = Type
;*** HL = Local port
;*** E = Source/destination bank for receive/send
;*** Output CF = Error state (0 = ok, 1 = error; A = error code)
;*** - if CF is 0:
;*** A = Handle
;*** Destroyed F,BC,DE,HL,IX,IY
;*** Description Opens an UDP session. Already with this functions you have
;*** to specify the ram bank number of the source and
;*** destination memory areas for upcoming data transfer.
;*** This function will fail, if there is no free socket left.
;*** It returns the session handle if it was successful.
;******************************************************************************
SyNet_UDPOPN
call snwmsgi_afdehl
db FNC_NET_UDPOPN
jp snwmsgo_afhl
endif
if use_SyNet_UDPCLO=1
;******************************************************************************
;*** ID 033 (UDPCLO)
;*** Name UDP_Close
;*** Input A = Handle
;*** Output CF = Error state (0 = ok, 1 = error; A = error code)
;*** - if CF is 0:
;*** A = Handle
;*** Destroyed F,BC,DE,HL,IX,IY
;*** Description Closes an UDP session and releases the used socket.
;******************************************************************************
SyNet_UDPCLO
call snwmsgi_af
db FNC_NET_UDPCLO
jp snwmsgo_afhl
endif
if use_SyNet_UDPSTA=1
;******************************************************************************
;*** ID 034 (UDPSTA)
;*** Name UDP_Status
;*** Input A = Handle
;*** Output CF = Error state (0 = ok, 1 = error; A = error code)
;*** - if CF is 0:
;*** A = Handle
;*** L = Status
;*** - if L is ???:
;*** BC = Received bytes
;*** IX,IY= Remote IP
;*** DE = Remote port
;*** Destroyed F,BC,DE,HL,IX,IY
;*** Description Returns the actual status of the UDP session. This is
;*** always exactly the same as received in the last event
;*** message (see UDPEVT).
;******************************************************************************
SyNet_UDPSTA
call snwmsgi_af
db FNC_NET_UDPSTA
jp snwmsgo_afbcdehlixiy
endif
if use_SyNet_UDPRCV=1
;******************************************************************************
;*** ID 035 (UDPRCV)
;*** Name UDP_Receive
;*** Input A = Handle
;*** HL = Destination address
;*** (bank has been specified by the UDPOPN function)
;*** Output CF = Error state (0 = ok, 1 = error; A = error code)
;*** - if CF is 0:
;*** A = Handle
;*** Destroyed F,BC,DE,HL,IX,IY
;*** Description Copies the package data, which has been received from a
;*** remote host, to a specified destination in memory. Please
;*** note, that this function will always transfer the whole
;*** data at once, so there should be enough place at the
;*** destination address. The destination ram bank number has
;*** already been specified with the UDPOPN function.
;******************************************************************************
SyNet_UDPRCV
call snwmsgi_afhl
db FNC_NET_UDPRCV
jp snwmsgo_afhl
endif
if use_SyNet_UDPSND=1
;******************************************************************************
;*** ID 036 (UDPSND)
;*** Name UDP_Send
;*** Input A = Handle
;*** HL = Source address
;*** (bank has been specified by the UDPOPN function)
;*** BC = Length
;*** IX,IY= Remote IP
;*** DE = Remote port
;*** Output CF = Error state (0 = ok, 1 = error; A = error code)
;*** - if CF is 0:
;*** A = Handle
;*** Destroyed F,BC,DE,HL,IX,IY
;*** Description Sends a data package to a remote host. It may happen, that
;*** the send buffer is currently full, and this function will
;*** the return the appropriate error code. In this case the
;*** application should idle for a short time and try to send
;*** the package again at another attempt.
;******************************************************************************
SyNet_UDPSND
call snwmsgi_afbcdehlixiy
db FNC_NET_UDPSND
jp snwmsgo_afhl
endif
if use_SyNet_UDPSKP=1
;******************************************************************************
;*** ID 037 (UDPSKP)
;*** Name UDP_Skip
;*** Input A = Handle
;*** Output CF = Error state (0 = ok, 1 = error; A = error code)
;*** - if CF is 0:
;*** A = Handle
;*** Destroyed F,BC,DE,HL,IX,IY
;*** Description Skips a received data package. This can be used if the
;*** application is sure, that the data is not needed or has
;*** sent from the wrong remote host, so the data transfer can
;*** be skipped to save resources.
;******************************************************************************
SyNet_UDPSKP
call snwmsgi_af
db FNC_NET_UDPSKP
jp snwmsgo_afhl
endif
;### DNS FUNCTIONS ############################################################
if use_SyNet_DNSRSV=1
;******************************************************************************
;*** ID 112 (DNSRSV)
;*** Name DNS_Resolve
;*** Input HL = string address (0-terminated)
;*** Output CF = Error state (0 = ok, 1 = error; A = error code)
;*** - if CF is 0:
;*** IX,IY= IP
;*** Destroyed AF,BC,DE,HL
;*** Description ...
;******************************************************************************
SyNet_DNSRSV
ld de,(App_BnkNum)
call snwmsgi_afdehl
db FNC_NET_DNSRSV
jp snwmsgo_afbcdehlixiy
endif
if use_SyNet_DNSVFY=1
;******************************************************************************
;*** ID 113 (DNSVFY)
;*** Name DNS_Verify
;*** Input HL = string address (0-terminated)
;*** Output L = type of address (0=no valid address, 1=IP address,
;*** 2=domain address)
;*** - if L is 1:
;*** IX,IY= IP
;*** Destroyed F,BC,DE,HL
;*** Description ...
;******************************************************************************
SyNet_DNSVFY
ld de,(App_BnkNum)
call snwmsgi_afdehl
db FNC_NET_DNSVFY
jp snwmsgo_afbcdehlixiy
endif
;### SUB ROUTINES #############################################################
snwmsgi_afbcdehlixiy
ld (App_MsgBuf+10),ix ;store registers to message buffer
ld (App_MsgBuf+12),iy
snwmsgi_afbcdehl
ld (App_MsgBuf+04),bc
snwmsgi_afdehl
ld (App_MsgBuf+06),de
snwmsgi_afhl
ld (App_MsgBuf+08),hl
snwmsgi_af
push af:pop hl
ld (App_MsgBuf+02),hl
pop hl
ld a,(hl) ;set command
inc hl
push hl
ld (App_MsgBuf+0),a
ld (snwmsg2+1),a
ld iy,App_MsgBuf
ld a,(App_PrcID)
db #dd:ld l,a
ld a,(SyNet_PrcID)
db #dd:ld h,a
ld (snwmsg1+2),ix
rst #10 ;send message
snwmsg1 ld ix,0 ;wait for response
rst #08
db #dd:dec l
jr nz,snwmsg1
ld a,(App_MsgBuf)
sub 128
snwmsg2 cp 0
ret z
ld a,(App_PrcID) ;wrong response code -> re-send and wait for correct one
db #dd:ld h,a
ld a,(SyNet_PrcID)
db #dd:ld l,a
rst #10
rst #30
jr snwmsg1
snwmsgo_afbcdehlixiy
ld ix,(App_MsgBuf+10) ;get registers from the message buffer
ld iy,(App_MsgBuf+12)
ld de,(App_MsgBuf+06)
snwmsgo_afbchl
ld bc,(App_MsgBuf+04)
snwmsgo_afhl
ld hl,(App_MsgBuf+02)
push hl
pop af
ld hl,(App_MsgBuf+08)
ret
| 37.400273
| 89
| 0.436352
|
e8f034eaeebd7aac32327bde0bbfd94f2c90d1f0
| 4,258
|
asm
|
Assembly
|
bootdict/tc/varconst.asm
|
ikysil/ikforth
|
165e049fc007003cd05f59332dc856d553d8aac8
|
[
"Unlicense"
] | 8
|
2017-08-03T08:49:06.000Z
|
2021-12-17T12:02:19.000Z
|
bootdict/tc/varconst.asm
|
clstrfsck/ikforth
|
165e049fc007003cd05f59332dc856d553d8aac8
|
[
"Unlicense"
] | 58
|
2016-04-21T20:03:54.000Z
|
2022-01-16T00:40:50.000Z
|
bootdict/tc/varconst.asm
|
clstrfsck/ikforth
|
165e049fc007003cd05f59332dc856d553d8aac8
|
[
"Unlicense"
] | 1
|
2018-07-25T21:07:00.000Z
|
2018-07-25T21:07:00.000Z
|
;******************************************************************************
;
; varconst.asm
; IKForth
;
; Unlicense since 1999 by Illya Kysil
;
;******************************************************************************
; Variables & constants
;******************************************************************************
; D: -- 0
$CONST '0',$ZERO,0
; CASE-SENSITIVE
; If CASE-SENSITIVE is true, then FIND is case sensitive
$USER 'CASE-SENSITIVE',$CASE_SENSITIVE,VAR_CASE_SENSITIVE
; CURRENT-FILE-POSITION
$USER 'CURRENT-FILE-POSITION',$CURRENT_FILE_POSITION,VAR_CURR_FILE_POS
; c-addr and length of last REFILL
$USER 'REFILL-SOURCE',$REFILL_SOURCE,VAR_REFILL_SOURCE
$USER 'INCLUDE-LINE#',$INCLUDE_LINE_NUM,VAR_INCLUDE_LINE_NUM
$USER 'ERROR-LINE#',$ERROR_LINE_NUM,VAR_ERROR_LINE_NUM
; addr of the latest INCLUDE mark
; INCLUDE mark is an xt of the word whose name provides included file name
$USER 'INCLUDE-MARK',$INCLUDE_MARK,VAR_INCLUDE_MARK
; FILE-LINE
; Line address for INCLUDED
$USER 'FILE-LINE',$FILE_LINE,VAR_FILE_LINE
; #FILE-LINE
; Line length for INCLUDED
$USER '#FILE-LINE',$HASH_FILE_LINE,VAR_HASH_FILE_LINE
$CONST 'MAX-FILE-LINE-LENGTH',,MAX_FILE_LINE_LENGTH
; INTERPRET-TEXT
; Line address for INCLUDED
$USER 'INTERPRET-TEXT',$INTERPRET_TEXT,VAR_INTERPRET_TEXT
; #INTERPRET-TEXT
; Line length for INCLUDED
$USER '#INTERPRET-TEXT',$HASH_INTERPRET_TEXT,VAR_HASH_INTERPRET_TEXT
; USER-SIZE-VAR
$VAR 'USER-SIZE-VAR',,USER_AREA_SIZE
; EXCEPTION-HANDLER
$USER 'EXCEPTION-HANDLER',$EXCEPTION_HANDLER,VAR_EXCEPTION_HANDLER
; S"INDEX
$VAR 'S"INDEX',$SQINDEX,0
; /S"INDEX
$CONST '/S"INDEX',$SLSQINDEX,SLSQINDEX
; S"INDEX-MASK
$CONST 'S"INDEX-MASK',$SQINDEX_MASK,SLSQINDEX - 1
; S"BUFFER
$USER 'S"BUFFER',$SQBUFFER,VAR_SQBUFFER
; /S"BUFFER
$CONST '/S"BUFFER',$SLSQBUFFER,SLSQBUFFER
; POCKET
$USER 'POCKET',$POCKET,VAR_POCKET
; CURRENT
$USER 'CURRENT',$CURRENT,VAR_CURRENT
; RECURSE-XT
; Stores the xt of the word to be compiled by RECURSE
$USER 'RECURSE-XT',,VAR_RECURSE_XT
; DEFER-XT
; Stores the xt of the last DEFER executed by (DO-DEFER)
$USER 'DEFER-XT',,VAR_DEFER_XT
; Start file name
; #SF
$VAR '#SF',$HASH_SF,0
HASH_SF_VAR EQU PFA_$HASH_SF
; SF
$VAR 'SF',$SF,0
SF_VAR EQU PFA_$SF
$CONST 'EXIT-CODE',$EXIT_CODE,0
EXIT_CODE_VAR EQU PFA_$EXIT_CODE
$CONST 'ARGC',$ARGC,0
ARGC_VAR EQU PFA_$ARGC
$CONST 'ARGV',$ARGV,0
ARGV_VAR EQU PFA_$ARGV
$CONST 'ENVP',$ENVP,0
ENVP_VAR EQU PFA_$ENVP
; DATA-AREA-BASE
$CONST 'DATA-AREA-BASE',,DESIRED_BASE_EQU
; DATA-AREA-SIZE
$CONST 'DATA-AREA-SIZE',,DESIRED_SIZE_VAR + IMAGE_BASE
; DP
; HERE = DP @
$VAR 'DP',$DP,HERE + IMAGE_BASE
VAR_DP EQU PFA_$DP
; 6.1.2250 STATE
; D: -- a-addr
; a-addr is the address of a cell containing the compilation-state flag.
; STATE is true when in compilation state, false otherwise.
; The true value in STATE is non-zero, but is otherwise implementation-defined.
$VAR 'STATE',$STATE,F_FALSE
VAR_STATE = PFA_$STATE
; 6.1.0750 BASE
; a-addr is the address of a cell containing the current number-conversion
; radix {{2...36}}.
; D: -- a-addr
$USER 'BASE',$BASE,VAR_BASE
; 6.1.0770 BL
; Push space character on stack
; D: -- char
$CONST 'BL',$BL,' '
; MAIN
; First Forth word to EXECUTE
$DEFER 'MAIN',$MAIN,$BOOTSTRAP_INTERPRET
MAIN_PROC_VAR EQU PFA_$MAIN
| 30.198582
| 96
| 0.530296
|
2fc55692bcb4682320b2c2baedebd3ff14d6f58d
| 433
|
asm
|
Assembly
|
oeis/349/A349859.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/349/A349859.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/349/A349859.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A349859: Expansion of Sum_{k>=0} k * x^k/(1 + k^2 * x).
; Submitted by Jon Maiga
; 0,1,1,-4,8,57,-771,4168,22504,-943255,13349105,-48905364,-3284972544,117005181841,-2071095992867,-2153841382168,1791029813641424,-79511121545541327,1867021096818903489,8850156160819959100,-3592582141732300745000
add $0,1
lpb $0
sub $0,1
mul $2,-1
add $3,1
mov $1,$3
pow $1,2
pow $1,$0
dif $1,$3
add $2,$1
sub $1,$2
lpe
mov $0,$1
| 24.055556
| 213
| 0.678984
|
87a52bef07b987a81ac5ca3de73eb011c2e358ab
| 584
|
asm
|
Assembly
|
oeis/027/A027818.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/027/A027818.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/027/A027818.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A027818: a(n) = (n+1)*binomial(n+6,6).
; 1,14,84,336,1050,2772,6468,13728,27027,50050,88088,148512,241332,379848,581400,868224,1268421,1817046,2557324,3542000,4834830,6512220,8665020,11400480,14844375,19143306,24467184,31011904,39002216,48694800,60381552,74393088,91102473,110929182,134343300,161869968,194094082,231665252,275303028,325802400,384039579,450978066,527675016,615287904,715081500,828435160,956850440,1101959040,1265531085,1449483750,1655890236,1886989104,2145193974,2433103596,2753512300,3109420832,3504047583,3940840218
add $0,6
mov $1,$0
sub $0,5
bin $1,6
mul $0,$1
| 64.888889
| 494
| 0.825342
|
8e8f04614cf09a937c763bb5ef4a807b57ddc011
| 3,755
|
asm
|
Assembly
|
os.asm
|
picosonic/bbm
|
f3d8e3f7bedd36f6156bf8bc87068cc17800b41d
|
[
"MIT"
] | 4
|
2020-09-16T12:05:50.000Z
|
2021-06-22T23:37:29.000Z
|
os.asm
|
picosonic/bbm
|
f3d8e3f7bedd36f6156bf8bc87068cc17800b41d
|
[
"MIT"
] | null | null | null |
os.asm
|
picosonic/bbm
|
f3d8e3f7bedd36f6156bf8bc87068cc17800b41d
|
[
"MIT"
] | null | null | null |
; OS function vectors
USERV = &0200
BRKV = &0202
IRQ1V = &0204
IRQ2V = &0206
CLIV = &0208
BYTEV = &020A
WORDV = &020C
WRCHV = &020E
RDCHV = &0210
FILEV = &0212
ARGSV = &0214
BGETV = &0216
BPUTV = &0218
GBPBV = &021A
FINDV = &021C
FSCV = &021E
EVNTV = &0220
UPTV = &0222
NETV = &0224
VDUV = &0226
KEYV = &0228
INSBV = &022A
REMVB = &022C
CNPV = &022E
IND1V = &0230
IND2V = &0232
IND3V = &0234
; OS memory locations
ZP_ECONET_WORKSPACE = &90
LANGUAGE_WORKSPACE = &400
SOUND_WORKSPACE = &800
NMI_WORKSPACE = &D00
; OS function call locations
OSFSC = &F1B1 ; filing system control (entry via FSCV)
OSWRSC = &FFB3 ; write byte to screen
OSRDSC = &FFB9 ; read byte from screen
OSNULL = &FFA6 ; blank function handler (just an RTS)
VDUCHR = &FFBC ; VDU character output
OSEVEN = &FFBF ; generate an EVENT
GSINIT = &FFC2 ; initialise OS string
GSREAD = &FFC5 ; read character from input stream
NVRDCH = &FFC8 ; non vectored OSRDCH
NVWRCH = &FFCB ; non vectored OSWRCH
OSFIND = &FFCE ; open or close a file
OSGBPB = &FFD1 ; transfer block to or from a file (get block / put block)
OSBPUT = &FFD4 ; save a byte to file
OSBGET = &FFD7 ; get a byte from file
OSARGS = &FFDA ; read or write file attributes
OSFILE = &FFDD ; read or write a complete file
OSRDCH = &FFE0 ; get a byte from current input stream
OSASCI = &FFE3 ; output a byte to VDU stream expanding CR (&0D) to LF/CR (&0A,&0D)
OSNEWL = &FFE7 ; output a LF/CR to VDU stream
OSWRCH = &FFEE ; output a character to the VDU stream
OSWORD = &FFF1 ; perform operation using parameter table
OSBYTE = &FFF4 ; perform operation on single byte
OSCLI = &FFF7 ; pass string to command line interpreter
; System hardware
FREDBASE = &FC00 ; memory mapped hardware
JIMBASE = &FD00 ; 64K paged memory
SHEILABASE = &FE00 ; system peripherals
; 6845 CRTC
CRTC00 = SHEILABASE+&00 ; address register (5 bit)
CRTC01 = SHEILABASE+&01 ; data register
; 6850 ACIA
ACIA08 = SHEILABASE+&08 ; Control / Status
ACIA09 = SHEILABASE+&09 ; Data
; Serial ULA
; Video ULA
ULA_VID20 = SHEILABASE+&20 ; video control register
ULA_VID21 = SHEILABASE+&21 ; colour palette
ULA_VID22 = SHEILABASE+&22 ; border control
ULA_VID23 = SHEILABASE+&23 ; 24-bit palette selection
; Paged ROM selector
PAGEROM = SHEILABASE+&30 ; paged ROM select (4 bit)
; 6522 System VIA
SYSVIA_REGB = SHEILABASE+&40
SYSVIA_REGA = SHEILABASE+&41
SYSVIA_DDRB = SHEILABASE+&42
SYSVIA_DDRA = SHEILABASE+&43
; 6522 User/Printer VIA
USERVIA_REGB = SHEILABASE+&60 ; User port
USERVIA_REGA = SHEILABASE+&61 ; Printer port
USERVIA_DDRB = SHEILABASE+&62 ; Data direction register B
USERVIA_DDRA = SHEILABASE+&63 ; Data direction register A
USERVIA_T2CL = SHEILABASE+&68 ; T2 low order counter
USERVIA_T2CH = SHEILABASE+&69 ; T2 high order counter
USERVIA_SR = SHEILABASE+&6A ; Shift register
USERVIA_ACR = SHEILABASE+&6B ; Auxilary control register
USERVIA_PCR = SHEILABASE+&6C ; Peripheral control register
USERVIA_IFR = SHEILABASE+&6D ; Interrupt flag register
USERVIA_IER = SHEILABASE+&6E ; Interrupt enable register
; 8271 FDC
FDC_STATUS = SHEILABASE+&80
FDC_RESULT = SHEILABASE+&81
FDC_COMMAND = SHEILABASE+&80
FDC_PARAM = SHEILABASE+&81
FDC_RESET = SHEILABASE+&82
FDC_DATA = SHEILABASE+&84
; 68B54 Econet
; uPD7002 ADC
; Tube ULA
; Other constants
MODE0BASE = &3000
MODE1BASE = &3000
MODE2BASE = &3000
MODE3BASE = &4000
MODE4BASE = &5800
MODE5BASE = &5800
MODE6BASE = &6000
MODE7BASE = &7C00
ROMSBASE = &8000
; Zero page availibility
; &00 to &6F - available to machine code programs not using BASIC
; &70 to &8F - reserved by BASIC for the user
; Colours in mode 1
;
; Default logical colours :
;
; 0 black (0)
; 1 red (1)
; 2 yellow (3)
; 3 white (7)
;
; Actual colours :
;
; 0 black
; 1 red
; 2 green
; 3 yellow
; 4 blue
; 5 magenta
; 6 cyan
; 7 white
| 25.201342
| 82
| 0.725699
|
5154e0913506646c0a479e36623ad99df97abaaf
| 8,641
|
asm
|
Assembly
|
Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48_notsx.log_17083_736.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48_notsx.log_17083_736.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/US/_zr_/i7-7700_9_0x48_notsx.log_17083_736.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r8
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x2f8a, %r8
add %rsi, %rsi
mov (%r8), %rdi
sub %rsi, %rsi
lea addresses_UC_ht+0x191ee, %rsi
lea addresses_UC_ht+0x119ee, %rdi
nop
nop
xor $26190, %r11
mov $89, %rcx
rep movsb
cmp $47755, %rcx
lea addresses_A_ht+0x8d08, %rsi
lea addresses_D_ht+0x53ee, %rdi
nop
nop
nop
nop
inc %rbx
mov $106, %rcx
rep movsq
nop
nop
sub %rcx, %rcx
lea addresses_A_ht+0x158ee, %r8
nop
nop
nop
xor %r13, %r13
mov (%r8), %ebx
nop
nop
nop
nop
nop
and %rcx, %rcx
lea addresses_A_ht+0x1bfee, %rbx
nop
sub $45944, %rsi
and $0xffffffffffffffc0, %rbx
movntdqa (%rbx), %xmm5
vpextrq $0, %xmm5, %r8
add $15677, %rbx
lea addresses_normal_ht+0x2dee, %r8
nop
nop
sub $59296, %r11
and $0xffffffffffffffc0, %r8
vmovaps (%r8), %ymm4
vextracti128 $0, %ymm4, %xmm4
vpextrq $1, %xmm4, %rdi
nop
add $6860, %rdi
lea addresses_WT_ht+0x155ee, %r13
nop
nop
nop
nop
add %r11, %r11
mov $0x6162636465666768, %rsi
movq %rsi, %xmm3
vmovups %ymm3, (%r13)
add %rbx, %rbx
lea addresses_D_ht+0x10dee, %rdi
dec %r13
mov (%rdi), %ecx
nop
nop
nop
nop
nop
xor $13115, %rbx
lea addresses_WT_ht+0x1778e, %rcx
clflush (%rcx)
nop
dec %rdi
movups (%rcx), %xmm5
vpextrq $0, %xmm5, %rsi
nop
nop
nop
nop
nop
xor $54354, %rcx
lea addresses_UC_ht+0x1251e, %rsi
lea addresses_WT_ht+0x16ee, %rdi
and $6970, %r9
mov $98, %rcx
rep movsw
add %rbx, %rbx
lea addresses_WT_ht+0x147ee, %r11
nop
nop
nop
inc %rsi
mov (%r11), %r8d
nop
nop
nop
nop
nop
add %r13, %r13
lea addresses_WT_ht+0x1ddee, %r11
nop
nop
sub %r9, %r9
mov $0x6162636465666768, %r8
movq %r8, %xmm1
movups %xmm1, (%r11)
nop
nop
nop
nop
and %r9, %r9
lea addresses_WT_ht+0x15dee, %rsi
lea addresses_WT_ht+0x1d3b6, %rdi
dec %r9
mov $35, %rcx
rep movsb
nop
nop
nop
sub $65212, %rbx
lea addresses_D_ht+0x1028e, %rsi
lea addresses_WC_ht+0x45fe, %rdi
add %r9, %r9
mov $31, %rcx
rep movsl
nop
nop
nop
add %rbx, %rbx
lea addresses_normal_ht+0x1116e, %rsi
lea addresses_D_ht+0x1e148, %rdi
nop
and %r8, %r8
mov $112, %rcx
rep movsw
add $23197, %rbx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r8
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r13
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
// Store
mov $0x62e, %r12
nop
xor $50114, %rax
movl $0x51525354, (%r12)
nop
nop
nop
cmp $40235, %r10
// REPMOV
lea addresses_A+0xb5ee, %rsi
lea addresses_A+0x12e76, %rdi
add %rbx, %rbx
mov $5, %rcx
rep movsl
nop
nop
nop
nop
nop
sub $62268, %rdi
// Load
lea addresses_normal+0x162ae, %rax
clflush (%rax)
nop
nop
nop
cmp %r10, %r10
mov (%rax), %r13w
nop
nop
nop
and %r12, %r12
// Faulty Load
lea addresses_US+0x8dee, %r12
nop
nop
and %r10, %r10
movups (%r12), %xmm4
vpextrq $0, %xmm4, %rbx
lea oracles, %r10
and $0xff, %rbx
shlq $12, %rbx
mov (%r10,%rbx,1), %rbx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r13
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_US', 'congruent': 0}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_P', 'congruent': 4}, 'OP': 'STOR'}
{'dst': {'same': False, 'congruent': 3, 'type': 'addresses_A'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_A'}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_normal', 'congruent': 6}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_US', 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'same': False, 'NT': True, 'AVXalign': False, 'size': 8, 'type': 'addresses_A_ht', 'congruent': 1}}
{'dst': {'same': False, 'congruent': 9, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 9, 'type': 'addresses_UC_ht'}}
{'dst': {'same': False, 'congruent': 9, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_A_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_A_ht', 'congruent': 7}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': True, 'AVXalign': False, 'size': 16, 'type': 'addresses_A_ht', 'congruent': 9}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': True, 'AVXalign': True, 'size': 32, 'type': 'addresses_normal_ht', 'congruent': 11}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_WT_ht', 'congruent': 9}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_D_ht', 'congruent': 11}}
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WT_ht', 'congruent': 5}}
{'dst': {'same': False, 'congruent': 8, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 4, 'type': 'addresses_UC_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WT_ht', 'congruent': 9}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WT_ht', 'congruent': 11}, 'OP': 'STOR'}
{'dst': {'same': False, 'congruent': 2, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_WT_ht'}}
{'dst': {'same': False, 'congruent': 4, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 4, 'type': 'addresses_D_ht'}}
{'dst': {'same': False, 'congruent': 1, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_normal_ht'}}
{'00': 17083}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 33.753906
| 2,999
| 0.65467
|
91fde2278a2b548d8ca44f12188b7830ec507a68
| 1,449
|
asm
|
Assembly
|
osdev-babysteps/02-bios-print/baby02_cursor.asm
|
bzamecnik/low-level-playground
|
ea46a35b951b3f44629d518a009804e4b4ba825c
|
[
"MIT"
] | null | null | null |
osdev-babysteps/02-bios-print/baby02_cursor.asm
|
bzamecnik/low-level-playground
|
ea46a35b951b3f44629d518a009804e4b4ba825c
|
[
"MIT"
] | null | null | null |
osdev-babysteps/02-bios-print/baby02_cursor.asm
|
bzamecnik/low-level-playground
|
ea46a35b951b3f44629d518a009804e4b4ba825c
|
[
"MIT"
] | null | null | null |
; https://wiki.osdev.org/Babystep2
; Writing a string message using the BIOS calls.
; Set cursor to the beginning of the screen.
; Initialize the address of the message.
; BIOS loads the boot sector at 0x07C0
; More info: https://www.glamenv-septzen.net/en/view/6
mov ax, 0x7C0
mov ds, ax ; segment of the string
mov si, msg ; offset of the string
call bios_print ; call the procedure
; after call the execution continues below to hang label
hang:
jmp hang ; infinite loop
bios_print:
; https://en.wikipedia.org/wiki/INT_10H
; http://vitaly_filatov.tripod.com/ng/asm/asm_023.15.html
; BIOS interrupt 0x10 with method 0x0E - teletype output:
; print character of a string while interpreting some characters
mov ah, 0x02 ; set cursor
mov bh, 0 ; page number
mov dh, 0 ; row
mov dl, 0 ; column
int 0x10 ; call the BIOS interrupt
print_char:
lodsb ; load a byte of string from DS:SI address to AL
cmp al, 0 ; set zero flag when AL = 0 (end of string)
je done ; jump to label "done" when zero flag is set
mov ah, 0x0E ; teletype output
mov bh, 0 ; display page number (active page, there might be other pages...)
int 0x10 ; call the BIOS interrupt
jmp print_char
done:
ret ; return from the procedure
; data: message + \r\n\0 - zero-terminated string
msg:
db 'baby 02 - procedure', 13, 10, 'Hello, world!', 13, 10, 0
; padding with boot signature
times 512 - 2 - ($-$$) db 0
db 0x55
db 0xAA
| 30.1875
| 78
| 0.701863
|
c639f982c649e384fdbebd043ac1c7723eade8a6
| 624
|
asm
|
Assembly
|
dino/lcs/123p/49.asm
|
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
|
a4a0c86c200241494b3f1834cd0aef8dc02f7683
|
[
"Apache-2.0"
] | 6
|
2020-10-14T15:29:10.000Z
|
2022-02-12T18:58:54.000Z
|
dino/lcs/123p/49.asm
|
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
|
a4a0c86c200241494b3f1834cd0aef8dc02f7683
|
[
"Apache-2.0"
] | null | null | null |
dino/lcs/123p/49.asm
|
zengfr/arcade_game_romhacking_sourcecode_top_secret_data
|
a4a0c86c200241494b3f1834cd0aef8dc02f7683
|
[
"Apache-2.0"
] | 1
|
2020-12-17T08:59:10.000Z
|
2020-12-17T08:59:10.000Z
|
copyright zengfr site:http://github.com/zengfr/romhack
0106B6 move.b ($49,A2), D0
0106BA beq $106da [123p+ 49]
010876 move.b ($49,A2), D0
01087A beq $1089a [123p+ 49]
0108FA move.b ($49,A2), D0
0108FE beq $1095e [123p+ 49]
01092E move.b ($49,A2), D0
010932 beq $1095e [123p+ 49]
01098A move.b ($49,A2), D0
01098E beq $109ae [123p+ 49]
010D38 move.b ($49,A2), D0
010D3C beq $10dca [123p+ 49]
0119D2 move.b ($49,A2), D0
0119D6 beq $119f2 [123p+ 49]
011B00 move.b ($49,A2), D0
011B04 beq $11b24 [123p+ 49]
copyright zengfr site:http://github.com/zengfr/romhack
| 29.714286
| 54
| 0.61859
|
c101850a391a79c7342ab6d53b571be29f4806c9
| 774
|
asm
|
Assembly
|
programs/oeis/071/A071797.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/071/A071797.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/071/A071797.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A071797: Restart counting after each new odd integer (a fractal sequence).
; 1,1,2,3,1,2,3,4,5,1,2,3,4,5,6,7,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,10,11,1,2,3,4,5,6,7,8,9,10,11,12,13,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25
mov $1,1
lpb $0,1
mov $1,$0
sub $0,1
add $2,2
trn $0,$2
lpe
| 70.363636
| 627
| 0.605943
|
bf616817f2386943900cd8316b5edfd7ed2d012e
| 392
|
asm
|
Assembly
|
oeis/059/A059937.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/059/A059937.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/059/A059937.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A059937: Sum of binary numbers with n 1's and two (possibly leading) 0's.
; Submitted by Jamie Morken(s1)
; 0,7,45,186,630,1905,5355,14308,36828,92115,225225,540606,1277874,2981797,6881175,15728520,35651448,80215911,179306325,398458690,880803630,1937768217,4244635395,9261022956,20132658900,43620761275
add $0,2
mov $1,2
pow $1,$0
mov $2,$0
sub $2,1
bin $2,2
mul $1,$2
sub $1,$2
mov $0,$1
| 28
| 196
| 0.747449
|
f1fa2aa37a4e63671bcc6adbc133aefc33528823
| 55
|
asm
|
Assembly
|
tests/rule_arg_simple/21.asm
|
NullMember/customasm
|
6e34d6432583a41278e6b3596f1817ae82149531
|
[
"Apache-2.0"
] | 414
|
2016-10-14T22:39:20.000Z
|
2022-03-30T07:52:44.000Z
|
tests/rule_arg_simple/21.asm
|
NullMember/customasm
|
6e34d6432583a41278e6b3596f1817ae82149531
|
[
"Apache-2.0"
] | 100
|
2018-03-22T16:12:24.000Z
|
2022-03-26T09:19:23.000Z
|
tests/rule_arg_simple/21.asm
|
NullMember/customasm
|
6e34d6432583a41278e6b3596f1817ae82149531
|
[
"Apache-2.0"
] | 47
|
2017-06-29T15:12:13.000Z
|
2022-03-10T04:50:51.000Z
|
#ruledef test
{
ld {x} => x
}
ld 0x1122 ; = 0x1122
| 9.166667
| 20
| 0.527273
|
d66d1f49513372c984a1a7599c00ade96c999a48
| 1,073
|
asm
|
Assembly
|
rpython/translator/c/src/stacklet/switch_x86_msvc.asm
|
yxzoro/pypy
|
6e47b3d3e5513d9639a21554963a6ace172ccfee
|
[
"Apache-2.0",
"OpenSSL"
] | 11
|
2018-01-24T14:57:26.000Z
|
2021-02-23T18:08:00.000Z
|
rpython/translator/c/src/stacklet/switch_x86_msvc.asm
|
yxzoro/pypy
|
6e47b3d3e5513d9639a21554963a6ace172ccfee
|
[
"Apache-2.0",
"OpenSSL"
] | 2
|
2020-01-12T13:13:19.000Z
|
2020-01-12T13:13:54.000Z
|
rpython/translator/c/src/stacklet/switch_x86_msvc.asm
|
yxzoro/pypy
|
6e47b3d3e5513d9639a21554963a6ace172ccfee
|
[
"Apache-2.0",
"OpenSSL"
] | 3
|
2018-01-28T12:45:37.000Z
|
2020-12-13T07:04:39.000Z
|
.386
.model flat, c
.code
slp_switch_raw PROC save_state:DWORD, restore_state:DWORD, extra:DWORD
;save registers. EAX ECX and EDX are available for function use and thus
;do not have to be stored.
push ebx
push esi
push edi
push ebp
mov esi, restore_state ; /* save 'restore_state' for later */
mov edi, extra ; /* save 'extra' for later */
mov eax, esp
push edi ; /* arg 2: extra */
push eax ; /* arg 1: current (old) stack pointer */
mov ecx, save_state
call ecx ; /* call save_state() */
test eax, eax; /* skip the restore if the return value is null */
jz exit
mov esp, eax; /* change the stack pointer */
push edi ; /* arg 2: extra */
push eax ; /* arg 1: current (new) stack pointer */
call esi ; /* call restore_state() */
exit:
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
ret
slp_switch_raw ENDP
end
| 24.386364
| 77
| 0.525629
|
5a402300c20f03aaa1fe343049a9e625394fd9ff
| 5,696
|
asm
|
Assembly
|
MULTIPLICACION 0.6.asm
|
Jon2G/ASMCalculator
|
f3181d12eae11f557965d43dfb48fecabecaef2e
|
[
"MIT"
] | null | null | null |
MULTIPLICACION 0.6.asm
|
Jon2G/ASMCalculator
|
f3181d12eae11f557965d43dfb48fecabecaef2e
|
[
"MIT"
] | null | null | null |
MULTIPLICACION 0.6.asm
|
Jon2G/ASMCalculator
|
f3181d12eae11f557965d43dfb48fecabecaef2e
|
[
"MIT"
] | null | null | null |
.model small
.data
num1 db 0,1,2,3,4,5,6,7,8,9,'$'
decimales_1 db 0,9,8,7,6,5,4,3,2,1,'$'
num2 db 0,1,2,3,4,5,6,7,8,9,'$'
decimales_2 db 0,9,8,7,6,5,4,3,2,1,'$'
num_1_mult db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'$'
num_2_mult db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'$'
over_flow_res db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
num_res_mult db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'$'
;multiplicaciones de 9 digitos por 9 digitos puden dar resultados de hasta 18 digitos
;estos digitos son "atrapados por la variable de overflow
hay_overFlow db 00h ;bandera para que el en el resultado considere los digitos en over_flow_num_res
hay_acarreo db 00h
Deci_1 db 00h
Deci_2 db 00h
Deci db 00h
.stack
.code
begin proc far
mov ax,@data
mov ds,ax
CALL MULTIPLICA
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;IMPRIMIR RESULTADO
LEA DX,over_flow_res
MOV AH,09
INT 21H
XOR AX,AX
INT 16H
begin endp
MULTIPLICA PROC NEAR
;;CONTAR LA CANTIDAD DE DECIMALES EN CADA NUMERO
;PARA EL NUMERO 1
JMP inicia_cuenta_decimal1
aun_hay_decimales_1:
INC Deci_1
INC SI
JMP deci1_contado
inicia_cuenta_decimal1:
MOV Deci_1,00h
MOV SI,0h
deci1_contado:
MOV Al,decimales_1[SI]
CMP Al,00h
JE aun_hay_decimales_1
INC Deci_1
DEC Deci_1
MOV AL,0ah
SUB Al,Deci_1
MOV Deci_1,Al
;PARA EL NUMERO 2
JMP inicia_cuenta_decimal2
aun_hay_decimales_2:
INC Deci_2
INC SI
JMP deci2_contado
inicia_cuenta_decimal2:
MOV Deci_2,00h
MOV SI,0h
deci2_contado:
MOV Al,decimales_2[SI]
CMP Al,00h
JE aun_hay_decimales_2
INC Deci_2
DEC Deci_2
MOV AL,0ah
SUB Al,Deci_2
MOV Deci_2,Al
MOV AL,Deci_2
CMP AL,Deci_1
JE igual_cantidad_decimales
JNE diferente_cantidad_deciamales
diferente_cantidad_deciamales:
MOV AL,Deci_2
ADD AL,Deci_1
igual_cantidad_decimales:
MOV Deci,Al
;COPIAR LOS NUMEROS DE LAS VARIABLES num1,decimales_1 y num1,decimales2 en sus partes ajustadas
;para la multiplicacion num_1_mult,num_2_mult
MOV SI,09h ;iniciamos el indice fuente en la ultima posicion de los decimales
MOV DI,12h ;iniciamos el indice fuente en la ultima posicion de las variables ajustadas para la suma
ajusta_dec1_mul:
MOV Al,decimales_1[SI]
MOV num_1_mult[DI],Al
MOV decimales_1[SI],00h
DEC SI
DEC DI
CMP DI,09h
JA ajusta_dec1_mul
MOV SI,09h
ajusta_ent1_mul:
MOV Al,num1[SI]
MOV num_1_mult[DI],Al
MOV num1[SI],00h
DEC SI
DEC DI
CMP DI,00h
JA ajusta_ent1_mul
;;para el numero dos
MOV SI,09h ;iniciamos el indice fuente en la ultima posicion de los decimales
MOV DI,12h ;iniciamos el indice fuente en la ultima posicion de las variables ajustadas para la suma
ajusta_dec2_mul:
MOV Al,decimales_2[SI]
MOV num_2_mult[DI],Al
MOV decimales_2[SI],00h
DEC SI
DEC DI
CMP DI,09h
JA ajusta_dec2_mul
MOV SI,09h
ajusta_ent2_mul:
MOV Al,num2[SI]
MOV num_2_mult[DI],Al
MOV num2[SI],00h
DEC SI
DEC DI
CMP DI,00h
JA ajusta_ent2_mul
;MULTIPLICAR PARTES ENTERAS SIN IMPORTAR ACARREOS
MOV SI,12h ;indice del multiplicador
MOV DI,12h ;indice del multiplicando
MOV BX,00h ;representa las posiciones de la suma dentro de la multiplicacion
siguiente_multiplicador_e:
siguiente_multiplicando_e:
MOV AL,num_1_mult[SI] ;movemos el multiplicador a Al
MOV DL,num_2_mult[DI] ;movemos el multiplicando a Dl
MUL Dl ; AL*Dl resultado en Ax
AAM ;desempacamos el resultado de la multiplicacion previa
SUB DI,BX ;decrementamos Di por la posicion de los multiplicandos
ADD num_res_mult[DI],Al ;agregamos la parte baja a la posicion de DI en num_res
ADD num_res_mult[DI-1],Ah ;agregamos la parte alta a la siguiente posicion de DI en num_res
ADD DI,BX ;restauramos Di para obtener la posicion real de el siguiente multiplicando
DEC DI ;decrementamos el indice del multiplicando
CMP DI,01H
JAE siguiente_multiplicando_e
;incrementamos contador de posiciones de multiplicandos
INC BX ;incrementamos el desplazamiento de la suma
MOV DI,12h ;volvemos al primer indice de los multiplicandos
DEC SI ;decrementamos el indice del multiplicador
CMP SI,01H
JAE siguiente_multiplicador_e
MOV hay_overFlow,01h
XOR AX,AX
INT 16H
acarreo_del_Acarreo:
MOV hay_acarreo,00h
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;AJUSTAR LOS ACARREOS ENTEROS
MOV SI,25h ;los resultados de multiplicaciones 9 enteros*9 enteros pueden llegar a tener hasta 18 digitos
JMP siguiente_Acarreo_entero
;
AcarreoEntero:
MOV hay_acarreo,01h
MOV Al,over_flow_res[SI]
AAM
ADD over_flow_res[SI-1],Ah
MOV over_flow_res[SI],Al
DEC SI
siguiente_Acarreo_entero:
CMP over_flow_res[SI],0Ah
JAE AcarreoEntero
DEC SI
JNS siguiente_Acarreo_entero
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
CMP hay_acarreo,01h
JNE no_mas_acarreo_mul
JMP acarreo_del_Acarreo
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
no_mas_acarreo_mul:
;;CONJUGAR LA PARTE ENTERA CON LA PARTE DECIMAL
;;AGREGANDO COMO DESPLAZAMIENTO LA CANTIDAD DE DIGITOS DECIMALES QUE CONTIENE
XOR AX,AX
INT 16H
;;AJUSTAR PARA IMPRESION
MOV SI,25h
JMP inicia_ajuste
salta_fin:
DEC SI
JMP inicia_ajuste
inicia_ajuste:
MOV AL,over_flow_res[SI]
CMP AL,24h
JE salta_fin
ADD AL,30h
MOV over_flow_res[SI],AL
DEC SI
JNS inicia_ajuste
RET
MULTIPLICA ENDP
end begin
| 24.033755
| 108
| 0.673279
|
69e643a8c1e04dbac79df61442a93baae7170084
| 937
|
asm
|
Assembly
|
35.asm
|
AsadKhalil/Assembly_x86
|
48aa2a0ab93fd359f5f20369bb9064052c2f2884
|
[
"MIT"
] | null | null | null |
35.asm
|
AsadKhalil/Assembly_x86
|
48aa2a0ab93fd359f5f20369bb9064052c2f2884
|
[
"MIT"
] | null | null | null |
35.asm
|
AsadKhalil/Assembly_x86
|
48aa2a0ab93fd359f5f20369bb9064052c2f2884
|
[
"MIT"
] | null | null | null |
[org 0x100]
jmp start
scrolldown:
;takes the number of lines to be scrolldown
push bp
mov bp, sp
;saving registers
push ax
push cx
push si
push di
push ds
push es
mov ax, 80 ;number of characters per row
mul byte [bp + 4] ;mulitiplying by number of lines
push ax ;savng number of lines for later use
shl ax, 1 ;turning into byte offset
mov si, 3998 ;moving last location of screen
sub si, ax ;calculating source position in ax
mov cx, 2000 ;moving number of locations
sub cx, ax ;count of words to move
mov ax, 0xb800
mov es, ax
mov ds, ax
mov di, 3998 ;point di to lower right coloumn
std ;set auto decrement mode
rep movsw
mov ax, 0x720
pop cx
rep stosw
pop es
pop ds
pop di
pop si
pop cx
pop ax
pop bp
ret 2
start:
mov ax, 5
push ax
call scrolldown
finish:
mov ax, 0x4c00
int 21h
| 13.779412
| 52
| 0.629669
|
38356f6ff7d395ac2bfc7d9c492dfd1eb7d99444
| 289
|
asm
|
Assembly
|
src/boot/printf.asm
|
100009337131285/OS_Developement
|
4477139b5ee70b5f9282b6d82184308b99e469a0
|
[
"Apache-2.0"
] | 31
|
2018-12-15T05:05:28.000Z
|
2022-02-21T22:21:23.000Z
|
src/boot/printf.asm
|
100009337131285/OS_Developement
|
4477139b5ee70b5f9282b6d82184308b99e469a0
|
[
"Apache-2.0"
] | 1
|
2020-10-25T01:03:03.000Z
|
2020-10-28T12:37:29.000Z
|
src/boot/printf.asm
|
100009337131285/OS_Developement
|
4477139b5ee70b5f9282b6d82184308b99e469a0
|
[
"Apache-2.0"
] | 12
|
2018-12-15T05:56:41.000Z
|
2022-02-10T22:29:59.000Z
|
printf:
pusha
mov ah, 0x0e ; Teletype output function
str_loop:
mov al, [si] ; Load a character byte to al
cmp al, 0
jne print_char ; if al != 0, jmp to print_char
popa
ret
print_char:
int 0x10 ; 0x10 interrupt
inc si ; add 1 to si
jmp str_loop
| 19.266667
| 50
| 0.619377
|
4d5167907e25035bfbd8b3741a30a12d1271b821
| 511
|
asm
|
Assembly
|
oeis/238/A238475.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/238/A238475.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/238/A238475.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A238475: Rectangular array with all start numbers Me(n, k), k >= 1, for the Collatz operation ud^(2*n), n >= 1, ending in an odd number, read by antidiagonals.
; Submitted by Jon Maiga
; 1,9,5,17,37,21,25,69,149,85,33,101,277,597,341,41,133,405,1109,2389,1365,49,165,533,1621,4437,9557,5461,57,197,661,2133,6485,17749,38229,21845,65,229,789,2645,8533,25941,70997,152917,87381
lpb $0
add $1,1
sub $0,$1
lpe
sub $1,$0
mul $1,6
add $1,1
lpb $0
sub $0,1
mul $1,4
lpe
mov $0,$1
div $0,3
mul $0,4
add $0,1
| 25.55
| 190
| 0.677104
|
f4e014313a75ffa8ba4574eb8327ca7fe91833ec
| 382
|
asm
|
Assembly
|
oeis/040/A040370.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/040/A040370.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/040/A040370.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A040370: Continued fraction for sqrt(390).
; Submitted by Jon Maiga
; 19,1,2,1,38,1,2,1,38,1,2,1,38,1,2,1,38,1,2,1,38,1,2,1,38,1,2,1,38,1,2,1,38,1,2,1,38,1,2,1,38,1,2,1,38,1,2,1,38,1,2,1,38,1,2,1,38,1,2,1,38,1,2,1,38,1,2,1,38,1,2,1,38,1,2,1,38,1,2,1,38,1,2,1
gcd $0,262156
mul $0,42
mod $0,13
mov $1,$0
mod $0,2
sub $1,2
div $1,5
add $1,1
mul $1,18
sub $1,$0
mov $0,$1
sub $0,16
| 22.470588
| 190
| 0.594241
|
47163d439dda7d570ac25e0a0cb9ef6c6fa399c7
| 8,584
|
asm
|
Assembly
|
Source/Main.asm
|
hhprg/C64Engine
|
3e23bf2134f1b64aae1fcf502ecf98801bb9764e
|
[
"MIT"
] | 4
|
2021-09-12T20:39:13.000Z
|
2022-01-24T11:32:20.000Z
|
Source/Main.asm
|
hhprg/C64Engine
|
3e23bf2134f1b64aae1fcf502ecf98801bb9764e
|
[
"MIT"
] | null | null | null |
Source/Main.asm
|
hhprg/C64Engine
|
3e23bf2134f1b64aae1fcf502ecf98801bb9764e
|
[
"MIT"
] | null | null | null |
/******************************************************************
* Copyright (C) 2015-2021 Henrik Holmdahl <henrikh.git@gmail.com>
******************************************************************/
.file [name="bin/Engine.prg", segments="Code,Sprites", allowOverlap]
//
.segment Code [start=$0840]
.segment Zeropage [start=$08, min=$08, max=$ff, virtual]
.segment BSS1 [start=$0200, min=$0200, max=$07ff, virtual]
.segment BSS2 [start=$b000, min=$b000, max=$bfff, virtual]
.segment Graphics [start=$c000, virtual]
.segment Sprites [start=$d000, min=$d000, max=$fff0]
.segment Zeropage
.label ZeropageBegin = *
.segment BSS1
.label BSS1Begin = *
.segment BSS2
.label BSS2Begin = *
//
.segment Sprites "Sprite const data"
.label kSpriteBaseFrame = (* & $3fff) / 64
.var Sprites = LoadBinary("../Assets/ArmalyteSprites.prg", BF_C64FILE)
.fill Sprites.getSize(), Sprites.get(i)
//
#import "Common.asm"
//
.segment Graphics "ScreenMem0"
.label Screen0Mem = *
.fill kScreenMemSize, 0
.segment Graphics "ScreenMem1"
.label Screen1Mem = *
.fill kScreenMemSize, 0
.segment Graphics "CharSetMem"
.label CharSetMem = *
.fill kCharDataSize, 0
.const kCharSetBits = ((>CharSetMem) & %00111000) >> 2
.const kScreen0AdrBits = (((>Screen0Mem) & %00111100) << 2) | kCharSetBits
.const kScreen1AdrBits = (((>Screen1Mem) & %00111100) << 2) | kCharSetBits
//
.segment Code "Main"
.namespace Main
{
#if DEBUG
.var ShowRasterTime = true
#else
.var ShowRasterTime = false
#endif // DEBUG
Init:
{
sei
cld
ldx #$ff
txs
// https://www.c64-wiki.com/index.php/Bankswitching
// http://www.harries.dk/files/C64MemoryMaps.pdf
// Page 264 in http://www.bombjack.org/commodore/commodore/C64_Programmer's_Reference_Guide.pdf
lda #%00110101 // RAM $a000-$bfff, IO $d000-$dfff, RAM $e000-$ffff
sta $01
lda $dd02 // Select bits 0-1 in $dd00 for output.
ora #%00000011
sta $dd02
lda $dd00 // Set VIC-II bank 3 ($c000-$ffff).
and #%11111100
ora #((>CharSetMem) >> 6) ^ 3
sta $dd00
lda #$7f
sta $dc0d // Disable hardware timer interrupt.
lda #%00000001 // Enable raster compare IRQ.
sta $d01a
lda #%00011011 // 25 row display.
sta $d011
lda #%00010111
sta $d016
lda #kScreen0AdrBits
sta $d018
lda #$ff
sta $d015 // Enable all hardware sprites.
sta $d01c // All multicolor sprites.
lda #0
sta $d01b // Sprite > foreground priority.
lda #kMainIRQRasterline
sta $d012
lda #WHITE
sta $d025
lda #DARK_GRAY
sta $d026
lda #>IRQHandler
sta $ffff
lda #<IRQHandler
sta $fffe
lda #>IRQHandler.NMIHandler
sta $fffb
lda #<IRQHandler.NMIHandler
sta $fffa
// Clear zeropage and BSS memory first!
jsr Memory.Init
lda #0 // Start level.
sta.zp LevelData.zpCurrent
jsr CharTileMap.Init
jsr Scroll.Init
jsr Camera.Init
jsr SpriteClipAnimator.Init
jsr PositionClipAnimator.Init
jsr AnimationTrigger.Init
jsr Multiplexer.Init
jsr Player.Init
cli
Self: jmp Self
}
// Re-entrant IRQ handler.
IRQHandler:
{
pha
txa
pha
tya
pha
cld
lda #%00000001 // Clear raster compare IRQ source
sta $d019
lda #$fa // Move all sprites below bottom border.
sta $d001
sta $d003
sta $d005
sta $d007
sta $d009
sta $d00b
sta $d00d
sta $d00f
//lda #%00010011 // 24 row display to open border.
//sta $d011
lda #0
sta $d015
.if (ShowRasterTime)
{
lda #0
sta $d020
}
MultiplexerBeginFrame()
TimeUpdate()
InputUpdate()
jsr Camera.Update
CameraPostUpdate()
jsr AnimationTrigger.Update
lda Animator.IsPreparingAnimation
beq !NotCritical+
// These subroutines are not re-entrant and are currently also running on background task.
// Save off used zeropage variables to avoid trashing them.
SpriteClipAnimatorPreUpdate()
jsr SpriteClipAnimator.Update
SpriteClipAnimatorPostUpdate()
PositionClipAnimatorPreUpdate()
jsr PositionClipAnimator.Update
PositionClipAnimatorPostUpdate()
jmp !AfterCritical+
!NotCritical:
jsr SpriteClipAnimator.Update
jsr PositionClipAnimator.Update
.if (ShowRasterTime) inc $d020
!AfterCritical:
// First add sprites that are always on screen.
jsr Player.Update
lda Animator.IsPreparingAnimation
beq !NotCritical+
AnimatorPreUpdate()
jsr AnimationTrigger.UpdateActive
AnimatorPostUpdate()
jmp !AfterCritical+
!NotCritical:
jsr AnimationTrigger.UpdateActive
!AfterCritical:
// Display front buffer (tables are in reverse order).
ldx Scroll.BackbufferIndex
lda ScreenAdrBits,x
sta $d018
lda ScreenMemHi,x
sta Multiplexer.IRQHandler.Add.ScreenMemHi
sta Multiplexer.EndFrame.Add.ScreenMemHi
lda Camera.FineScroll
ora #%00010000 // 38-column mode, enable multicolor
sta $d016
.if (ShowRasterTime) inc $d020
jsr Multiplexer.EndFrame
//lda #%00011011 // 25 row display.
//sta $d011
lda #$ff
sta $d015
.if (ShowRasterTime)
{
lda #14
sta $d020
}
jsr Task.Update
pla
tay
pla
tax
pla
NMIHandler: rti
}
// Reverse order because indexed with backbuffer index.
ScreenAdrBits:
.byte kScreen1AdrBits, kScreen0AdrBits
ScreenMemHi:
.byte >(Screen1Mem + $03f8), >(Screen0Mem + $03f8)
} // .namespace Main
//
#import "Memory.asm"
#import "Task.asm"
#import "Time.asm"
#import "Camera.asm"
#import "Input.asm"
#import "AnimationData.asm"
#import "AnimationTrigger.asm"
#import "Multiplexer.asm"
#import "CharTileMap.asm"
#import "LevelData.asm"
//#import "RLE.asm"
#import "Scroll.asm"
#import "ColorScroll.asm"
#import "Player.asm"
//
.segment Zeropage
.label ZeropageEnd = *
.segment BSS1
.label BSS1End = *
.segment BSS2
.label BSS2End = *
| 30.657143
| 116
| 0.449091
|
a4c0692585b3135434d225aa309e60801893c38a
| 243
|
asm
|
Assembly
|
src/nxlib/syscalls.asm
|
TheDarkBomber/XLS
|
6609216aaa10ad9215a5fdcfffee8d4e7ae41025
|
[
"BSD-2-Clause"
] | null | null | null |
src/nxlib/syscalls.asm
|
TheDarkBomber/XLS
|
6609216aaa10ad9215a5fdcfffee8d4e7ae41025
|
[
"BSD-2-Clause"
] | null | null | null |
src/nxlib/syscalls.asm
|
TheDarkBomber/XLS
|
6609216aaa10ad9215a5fdcfffee8d4e7ae41025
|
[
"BSD-2-Clause"
] | null | null | null |
%include "common.inc"
%macro defsyscall 2
global %1:function
%1:
mov rax, %2
syscall
ret
%endmacro
section .text
defsyscall READ, 0
defsyscall WRITE, 1
defsyscall GETPID, 39
defsyscall FORK, 57
defsyscall EXIT, 60
defsyscall TERMINATE, 62
| 14.294118
| 24
| 0.765432
|
7ba8a59ed68bdfb77c17f8020ec7f3997ac735b7
| 72,593
|
asm
|
Assembly
|
PRACT0/SO1H_0/asm/procs_x.asm
|
so1h/SO1H
|
7163aa1907b7f7ab70ab022012036c4fa0482e17
|
[
"BSD-2-Clause"
] | null | null | null |
PRACT0/SO1H_0/asm/procs_x.asm
|
so1h/SO1H
|
7163aa1907b7f7ab70ab022012036c4fa0482e17
|
[
"BSD-2-Clause"
] | null | null | null |
PRACT0/SO1H_0/asm/procs_x.asm
|
so1h/SO1H
|
7163aa1907b7f7ab70ab022012036c4fa0482e17
|
[
"BSD-2-Clause"
] | null | null | null |
bits 16
; glb intptr_t : int
; glb uintptr_t : unsigned
; glb intmax_t : int
; glb uintmax_t : unsigned
; glb int8_t : signed char
; glb int_least8_t : signed char
; glb int_fast8_t : signed char
; glb uint8_t : unsigned char
; glb uint_least8_t : unsigned char
; glb uint_fast8_t : unsigned char
; glb int16_t : short
; glb int_least16_t : short
; glb int_fast16_t : short
; glb uint16_t : unsigned short
; glb uint_least16_t : unsigned short
; glb uint_fast16_t : unsigned short
; glb int32_t : int
; glb int_least32_t : int
; glb int_fast32_t : int
; glb uint32_t : unsigned
; glb uint_least32_t : unsigned
; glb uint_fast32_t : unsigned
; glb imaxdiv_t : struct <something>
; glb bool_t : int
; glb pointer_t : * unsigned char
; glb funcion_t : * (
; prm <something> : * void
; ) * void
; glb manejador_t : * (void) void
; glb rti_t : * (void) void
; glb isr_t : * (void) void
; glb handler_t : * (void) void
; glb retardarThread_t : * (void) int
; glb ptrTVI_t : * * (void) void
; glb modoSO1_t : int
; glb lh_t : struct <something>
; glb address_t : struct <something>
; glb uPtrAdr_t : union <something>
; glb pid_t : int
; glb tid_t : int
; glb uid_t : int
; glb gid_t : int
; glb pindx_t : int
; glb tindx_t : int
; glb df_t : int
; glb dfs_t : int
; glb rindx_t : int
; glb modoAp_t : unsigned short
; glb tramaDWords_t : struct <something>
; glb tramaWords_t : struct <something>
; RPN'ized expression: "2 "
; Expanded expression: "2 "
; Expression value: 2
; RPN'ized expression: "2 "
; Expanded expression: "2 "
; Expression value: 2
; RPN'ized expression: "2 "
; Expanded expression: "2 "
; Expression value: 2
; RPN'ized expression: "2 "
; Expanded expression: "2 "
; Expression value: 2
; glb tramaBytes_t : struct <something>
; glb trama_t : union <something>
; RPN'ized expression: "8 "
; Expanded expression: "8 "
; Expression value: 8
; glb bloque_t : struct <something>
; glb ptrBloque_t : * struct <something>
; glb dobleEnlace_t : struct <something>
; glb c2c_t : struct <something>
; glb posicionC2c : (
; prm i : int
; prm c2c : struct <something>
; ) int
; glb eliminarC2c : (
; prm i : int
; prm c2c : struct <something>
; ) void
; glb apilarC2c : (
; prm i : int
; prm c2c : struct <something>
; ) void
; glb encolarC2c : (
; prm i : int
; prm c2c : struct <something>
; ) void
; glb desencolarC2c : (
; prm c2c : struct <something>
; ) int
; glb inicializarC2c : (
; prm c2c : * struct <something>
; prm e : * struct <something>
; prm cabecera : int
; prm compartida : int
; ) void
; glb ptrC2c_t : * struct <something>
; glb posicionPC2c : (
; prm i : int
; prm c2c : * struct <something>
; ) int
; glb eliminarPC2c : (
; prm i : int
; prm ptrC2c : * struct <something>
; ) void
; glb apilarPC2c : (
; prm i : int
; prm ptrC2c : * struct <something>
; ) void
; glb encolarPC2c : (
; prm i : int
; prm ptrC2c : * struct <something>
; ) void
; glb desencolarPC2c : (
; prm ptrC2c : * struct <something>
; ) int
; glb inicializarPC2c : (
; prm ptrC2c : * struct <something>
; prm e : * struct <something>
; prm cabecera : int
; prm compartida : int
; ) void
; glb callBack_t : * (
; prm arg : * void
; ) int
; RPN'ized expression: "10 "
; Expanded expression: "10 "
; Expression value: 10
; glb descCcb_t : struct <something>
; glb ccb_t : * struct <something>
; glb inicCcb : (
; prm ccb : * struct <something>
; prm max : unsigned short
; ) int
; glb encolarCcb : (
; prm cb : * (
; prm arg : * void
; ) int
; prm ccb : * struct <something>
; ) int
; glb desencolarCcb : (
; prm ccb : * struct <something>
; ) * (
; prm arg : * void
; ) int
; glb eliminarCcb : (
; prm cb : * (
; prm arg : * void
; ) int
; prm ccb : * struct <something>
; ) int
; glb eliminarSegCcb : (
; prm segmento : unsigned short
; prm ccb : * struct <something>
; ) int
; glb vaciarCcb : (
; prm ccb : * struct <something>
; ) int
; glb atenderCcb : (
; prm ccb : * struct <something>
; ) int
; glb estado_t : int
; glb dfa_t : struct <something>
; RPN'ized expression: "12 "
; Expanded expression: "12 "
; Expression value: 12
; RPN'ized expression: "80 "
; Expanded expression: "80 "
; Expression value: 80
; RPN'ized expression: "10 "
; Expanded expression: "10 "
; Expression value: 10
; glb descProceso_t : struct <something>
; glb descThread_t : struct <something>
; glb tipoFichero_t : int
; RPN'ized expression: "9 "
; Expanded expression: "9 "
; Expression value: 9
; glb descFichero_t : struct <something>
; glb tipoRecurso_t : int
; glb open_t : * (
; prm dfs : int
; prm modo : unsigned short
; ) int
; glb release_t : * (
; prm dfs : int
; ) int
; glb read_t : * (
; prm dfs : int
; prm dir : * unsigned char
; prm nbytes : unsigned short
; ) int
; glb aio_read_t : * (
; prm dfs : int
; prm dir : * unsigned char
; prm nbytes : unsigned short
; ) int
; glb write_t : * (
; prm dfs : int
; prm dir : * unsigned char
; prm nbytes : unsigned short
; ) int
; glb aio_write_t : * (
; prm dfs : int
; prm dir : * unsigned char
; prm nbytes : unsigned short
; ) int
; glb lseek_t : * (
; prm dfs : int
; prm pos : int
; prm whence : unsigned short
; ) int
; glb fcntl_t : * (
; prm dfs : int
; prm cmd : unsigned short
; prm arg : unsigned short
; ) int
; glb ioctl_t : * (
; prm dfs : int
; prm request : unsigned short
; prm arg : unsigned short
; ) int
; glb eliminar_t : * (
; prm pindx : int
; ) int
; RPN'ized expression: "12 "
; Expanded expression: "12 "
; Expression value: 12
; RPN'ized expression: "2 "
; Expanded expression: "2 "
; Expression value: 2
; RPN'ized expression: "2 "
; Expanded expression: "2 "
; Expression value: 2
; RPN'ized expression: "2 "
; Expanded expression: "2 "
; Expression value: 2
; glb descRecurso_t : struct <something>
; glb info_t : struct <something>
; glb cabecera_t : struct <something>
; RPN'ized expression: "16 1 + "
; Expanded expression: "17 "
; Expression value: 17
; RPN'ized expression: "16 2 + "
; Expanded expression: "18 "
; Expression value: 18
; RPN'ized expression: "2010 1 + "
; Expanded expression: "2011 "
; Expression value: 2011
; RPN'ized expression: "2010 2 + "
; Expanded expression: "2012 "
; Expression value: 2012
; RPN'ized expression: "20 1 + "
; Expanded expression: "21 "
; Expression value: 21
; RPN'ized expression: "20 2 + "
; Expanded expression: "22 "
; Expression value: 22
; RPN'ized expression: "14 1 + "
; Expanded expression: "15 "
; Expression value: 15
; RPN'ized expression: "14 2 + "
; Expanded expression: "16 "
; Expression value: 16
; RPN'ized expression: "16 16 + "
; Expanded expression: "32 "
; Expression value: 32
; RPN'ized expression: "2010 16 + "
; Expanded expression: "2026 "
; Expression value: 2026
; RPN'ized expression: "2010 1 + "
; Expanded expression: "2011 "
; Expression value: 2011
; RPN'ized expression: "2010 1 + "
; Expanded expression: "2011 "
; Expression value: 2011
; RPN'ized expression: "16 1 + "
; Expanded expression: "17 "
; Expression value: 17
; RPN'ized expression: "2010 1 + "
; Expanded expression: "2011 "
; Expression value: 2011
; RPN'ized expression: "20 14 + "
; Expanded expression: "34 "
; Expression value: 34
; glb e2PFR_t : struct <something>
; glb cPFR_t : int
; glb sigThread_t : * () int
; glb activarThread_t : * (
; prm tindx : int
; ) void
; glb buscarNuevoThreadActual_t : * (void) void
; glb bloquearThreadActual_t : * (
; prm rindx : int
; ) void
; glb descSO1H_t : struct <something>
; RPN'ized expression: "16 "
; Expanded expression: "16 "
; Expression value: 16
; glb nombreDF_t : [16u] char
; RPN'ized expression: "40 "
; Expanded expression: "40 "
; Expression value: 40
; glb comandoDF_t : [40u] char
; glb tipoDF_t : int
; glb entradaDF_t : struct <something>
; glb dirInicial : unsigned
; glb dirCargaFichero : unsigned
; glb dirFinal : unsigned
; glb reubicacion_t : struct <something>
; glb reubicacion : * struct <something>
; glb numER : unsigned
; glb ptrIndProcesoActual : * int
; glb ptrIndThreadActual : * int
; glb ptrTramaThread : * * union <something>
; glb ptrActivarAlEpilogo : * int
; glb ptrDescProceso : * struct <something>
; glb tamDescProceso : unsigned short
; glb ptrDescThread : * struct <something>
; glb tamDescThread : unsigned short
; glb ptrDescFichero : * struct <something>
; glb ptrDescRecurso : * struct <something>
; glb ptrC2cPFR : * struct <something>
; glb ptrE2PFR : * struct <something>
; glb ptrNivelActivacionSO1H : * int
; glb ptrEnHalt : * int
; glb ptrHayTic : * int
; glb ptrCcbAlEpilogo : * * struct <something>
; glb ptrSS_Thread : * unsigned short
; glb ptrSP_Thread : * unsigned short
; glb ptrSS_Kernel : * unsigned short
; glb ptrSP0_Kernel : * unsigned short
; glb SP0_SO1H : unsigned short
; glb ptrContRodajas : * unsigned
; glb ptrContTicsRodaja : * int
; glb ptrVIOrg : * * (void) void
; glb sigThread : * () int
; glb activarThread : * (
; prm tindx : int
; ) void
; glb buscarNuevoThreadActual : * (void) void
; glb bloquearThreadActual : * (
; prm rindx : int
; ) void
; glb ptrListaLibres : * * struct <something>
; glb ptrTamBloqueMax : * unsigned short
; glb inicProcesos_x : (void) void
; glb size_t : unsigned
; glb memset : (
; prm <something> : * void
; prm <something> : int
; prm <something> : unsigned
; ) * void
; glb memcpy : (
; prm <something> : * void
; prm <something> : * void
; prm <something> : unsigned
; ) * void
; glb memmove : (
; prm <something> : * void
; prm <something> : * void
; prm <something> : unsigned
; ) * void
; glb memchr : (
; prm <something> : * char
; prm <something> : int
; prm <something> : unsigned
; ) * char
; glb memcmp : (
; prm <something> : * void
; prm <something> : * void
; prm <something> : unsigned
; ) int
; glb strcpy : (
; prm <something> : * char
; prm <something> : * char
; ) * char
; glb strncpy : (
; prm <something> : * char
; prm <something> : * char
; prm <something> : unsigned
; ) * char
; glb strxfrm : (
; prm <something> : * char
; prm <something> : * char
; prm <something> : unsigned
; ) unsigned
; glb strcat : (
; prm <something> : * char
; prm <something> : * char
; ) * char
; glb strncat : (
; prm <something> : * char
; prm <something> : * char
; prm <something> : unsigned
; ) * char
; glb strlen : (
; prm <something> : * char
; ) unsigned
; glb strchr : (
; prm <something> : * char
; prm <something> : int
; ) * char
; glb strrchr : (
; prm <something> : * char
; prm <something> : int
; ) * char
; glb strstr : (
; prm <something> : * char
; prm <something> : * char
; ) * char
; glb strspn : (
; prm <something> : * char
; prm <something> : * char
; ) unsigned
; glb strcspn : (
; prm <something> : * char
; prm <something> : * char
; ) unsigned
; glb strpbrk : (
; prm <something> : * char
; prm <something> : * char
; ) * char
; glb strtok : (
; prm <something> : * char
; prm <something> : * char
; ) * char
; glb strcmp : (
; prm <something> : * char
; prm <something> : * char
; ) int
; glb strncmp : (
; prm <something> : * char
; prm <something> : * char
; prm <something> : unsigned
; ) int
; glb strcoll : (
; prm <something> : * char
; prm <something> : * char
; ) int
; glb strerror : (
; prm <something> : int
; ) * char
; glb ptrIndProcesoActual : * int
section .bss
alignb 4
global _ptrIndProcesoActual
_ptrIndProcesoActual:
resb 4
; glb ptrIndThreadActual : * int
section .bss
alignb 4
global _ptrIndThreadActual
_ptrIndThreadActual:
resb 4
; glb ptrTramaThread : * * union <something>
section .bss
alignb 4
global _ptrTramaThread
_ptrTramaThread:
resb 4
; glb ptrActivarAlEpilogo : * int
section .bss
alignb 4
global _ptrActivarAlEpilogo
_ptrActivarAlEpilogo:
resb 4
; glb ptrDescProceso : * struct <something>
section .bss
alignb 4
global _ptrDescProceso
_ptrDescProceso:
resb 4
; glb tamDescProceso : unsigned short
section .bss
alignb 4
global _tamDescProceso
_tamDescProceso:
resb 2
; glb ptrDescThread : * struct <something>
section .bss
alignb 4
global _ptrDescThread
_ptrDescThread:
resb 4
; glb tamDescThread : unsigned short
section .bss
alignb 4
global _tamDescThread
_tamDescThread:
resb 2
; glb ptrDescFichero : * struct <something>
section .bss
alignb 4
global _ptrDescFichero
_ptrDescFichero:
resb 4
; glb ptrDescRecurso : * struct <something>
section .bss
alignb 4
global _ptrDescRecurso
_ptrDescRecurso:
resb 4
; glb ptrC2cPFR : * struct <something>
section .bss
alignb 4
global _ptrC2cPFR
_ptrC2cPFR:
resb 4
; glb ptrE2PFR : * struct <something>
section .bss
alignb 4
global _ptrE2PFR
_ptrE2PFR:
resb 4
; glb ptrNivelActivacionSO1H : * int
section .bss
alignb 4
global _ptrNivelActivacionSO1H
_ptrNivelActivacionSO1H:
resb 4
; glb ptrEnHalt : * int
section .bss
alignb 4
global _ptrEnHalt
_ptrEnHalt:
resb 4
; glb ptrHayTic : * int
section .bss
alignb 4
global _ptrHayTic
_ptrHayTic:
resb 4
; glb ptrCcbAlEpilogo : * * struct <something>
section .bss
alignb 4
global _ptrCcbAlEpilogo
_ptrCcbAlEpilogo:
resb 4
; glb ptrSS_Thread : * unsigned short
section .bss
alignb 4
global _ptrSS_Thread
_ptrSS_Thread:
resb 4
; glb ptrSP_Thread : * unsigned short
section .bss
alignb 4
global _ptrSP_Thread
_ptrSP_Thread:
resb 4
; glb ptrSS_Kernel : * unsigned short
section .bss
alignb 4
global _ptrSS_Kernel
_ptrSS_Kernel:
resb 4
; glb ptrSP0_Kernel : * unsigned short
section .bss
alignb 4
global _ptrSP0_Kernel
_ptrSP0_Kernel:
resb 4
; glb SP0_SO1H : unsigned short
section .bss
alignb 4
global _SP0_SO1H
_SP0_SO1H:
resb 2
; glb ptrContRodajas : * unsigned
section .bss
alignb 4
global _ptrContRodajas
_ptrContRodajas:
resb 4
; glb ptrContTicsRodaja : * int
section .bss
alignb 4
global _ptrContTicsRodaja
_ptrContTicsRodaja:
resb 4
; glb ptrVIOrg : * * (void) void
section .bss
alignb 4
global _ptrVIOrg
_ptrVIOrg:
resb 4
; glb sigThread : * () int
section .bss
alignb 4
global _sigThread
_sigThread:
resb 4
; glb activarThread : * (
; prm tindx : int
; ) void
section .bss
alignb 4
global _activarThread
_activarThread:
resb 4
; glb buscarNuevoThreadActual : * (void) void
section .bss
alignb 4
global _buscarNuevoThreadActual
_buscarNuevoThreadActual:
resb 4
; glb bloquearThreadActual : * (
; prm rindx : int
; ) void
section .bss
alignb 4
global _bloquearThreadActual
_bloquearThreadActual:
resb 4
; glb ptrListaLibres : * * struct <something>
section .bss
alignb 4
global _ptrListaLibres
_ptrListaLibres:
resb 4
; glb ptrTamBloqueMax : * unsigned short
section .bss
alignb 4
global _ptrTamBloqueMax
_ptrTamBloqueMax:
resb 4
; glb inicProcesos_x : (void) void
section .text
global _inicProcesos_x
_inicProcesos_x:
push ebp
movzx ebp, sp
sub sp, 8
; loc i : (@-4): int
; loc ind : (@-8): int
; loc <something> : * struct <something>
; loc <something> : * struct <something>
; RPN'ized expression: "( FALSE , 16 , ptrE2PFR e2DescProceso -> *u &u Libres -> *u &u (something4) , ptrC2cPFR DPLibres + *u &u (something3) inicializarPC2c ) "
; Expanded expression: " 0 16 ptrE2PFR *(4) 0 + 0 + ptrC2cPFR *(4) 0 + inicializarPC2c ()16 "
; Fused expression: "( 0 , 16 , ptrE2PFR + *ax 0 + ax 0 , ptrC2cPFR + *ax 0 , inicializarPC2c )16 "
push dword 0
push dword 16
section .relod
dd L5
section .text
db 0x66, 0xB8
L5:
dd _ptrE2PFR
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
push eax
section .relod
dd L6
section .text
db 0x66, 0xB8
L6:
dd _ptrC2cPFR
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
push eax
db 0x9A
section .relot
dd L7
section .text
L7:
dd _inicializarPC2c
sub sp, -16
; loc <something> : * struct <something>
; loc <something> : * struct <something>
; RPN'ized expression: "( TRUE , 16 1 + , ptrE2PFR e2DescProceso -> *u &u Ocupados -> *u &u (something9) , ptrC2cPFR DPOcupados + *u &u (something8) inicializarPC2c ) "
; Expanded expression: " 1 17 ptrE2PFR *(4) 0 + 0 + ptrC2cPFR *(4) 16 + inicializarPC2c ()16 "
; Fused expression: "( 1 , 17 , ptrE2PFR + *ax 0 + ax 0 , ptrC2cPFR + *ax 16 , inicializarPC2c )16 "
push dword 1
push dword 17
section .relod
dd L10
section .text
db 0x66, 0xB8
L10:
dd _ptrE2PFR
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
push eax
section .relod
dd L11
section .text
db 0x66, 0xB8
L11:
dd _ptrC2cPFR
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, 16
push eax
db 0x9A
section .relot
dd L12
section .text
L12:
dd _inicializarPC2c
sub sp, -16
; loc <something> : * struct <something>
; loc <something> : * struct <something>
; RPN'ized expression: "( FALSE , 2010 , ptrE2PFR e2DescThread -> *u &u Libres -> *u &u (something14) , ptrC2cPFR DTLibres + *u &u (something13) inicializarPC2c ) "
; Expanded expression: " 0 2010 ptrE2PFR *(4) 216 + 0 + ptrC2cPFR *(4) 32 + inicializarPC2c ()16 "
; Fused expression: "( 0 , 2010 , ptrE2PFR + *ax 216 + ax 0 , ptrC2cPFR + *ax 32 , inicializarPC2c )16 "
push dword 0
push dword 2010
section .relod
dd L15
section .text
db 0x66, 0xB8
L15:
dd _ptrE2PFR
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, 216
push eax
section .relod
dd L16
section .text
db 0x66, 0xB8
L16:
dd _ptrC2cPFR
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, 32
push eax
db 0x9A
section .relot
dd L17
section .text
L17:
dd _inicializarPC2c
sub sp, -16
; loc <something> : * struct <something>
; loc <something> : * struct <something>
; RPN'ized expression: "( TRUE , 2010 1 + , ptrE2PFR e2DescThread -> *u &u Ocupados -> *u &u (something19) , ptrC2cPFR DTOcupados + *u &u (something18) inicializarPC2c ) "
; Expanded expression: " 1 2011 ptrE2PFR *(4) 216 + 0 + ptrC2cPFR *(4) 48 + inicializarPC2c ()16 "
; Fused expression: "( 1 , 2011 , ptrE2PFR + *ax 216 + ax 0 , ptrC2cPFR + *ax 48 , inicializarPC2c )16 "
push dword 1
push dword 2011
section .relod
dd L20
section .text
db 0x66, 0xB8
L20:
dd _ptrE2PFR
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, 216
push eax
section .relod
dd L21
section .text
db 0x66, 0xB8
L21:
dd _ptrC2cPFR
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, 48
push eax
db 0x9A
section .relot
dd L22
section .text
L22:
dd _inicializarPC2c
sub sp, -16
; loc <something> : * struct <something>
; loc <something> : * struct <something>
; RPN'ized expression: "( FALSE , 2010 , ptrE2PFR e2Preparados -> *u &u (something24) , ptrC2cPFR TPreparados + *u &u (something23) inicializarPC2c ) "
; Expanded expression: " 0 2010 ptrE2PFR *(4) 49512 + ptrC2cPFR *(4) 64 + inicializarPC2c ()16 "
; Fused expression: "( 0 , 2010 , ptrE2PFR + *ax 49512 , ptrC2cPFR + *ax 64 , inicializarPC2c )16 "
push dword 0
push dword 2010
section .relod
dd L25
section .text
db 0x66, 0xB8
L25:
dd _ptrE2PFR
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, 49512
push eax
section .relod
dd L26
section .text
db 0x66, 0xB8
L26:
dd _ptrC2cPFR
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, 64
push eax
db 0x9A
section .relot
dd L27
section .text
L27:
dd _inicializarPC2c
sub sp, -16
; loc <something> : * struct <something>
; loc <something> : * struct <something>
; RPN'ized expression: "( FALSE , 2010 , ptrE2PFR e2Urgentes -> *u &u (something29) , ptrC2cPFR TUrgentes + *u &u (something28) inicializarPC2c ) "
; Expanded expression: " 0 2010 ptrE2PFR *(4) 73644 + ptrC2cPFR *(4) 80 + inicializarPC2c ()16 "
; Fused expression: "( 0 , 2010 , ptrE2PFR + *ax 73644 , ptrC2cPFR + *ax 80 , inicializarPC2c )16 "
push dword 0
push dword 2010
section .relod
dd L30
section .text
db 0x66, 0xB8
L30:
dd _ptrE2PFR
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, 73644
push eax
section .relod
dd L31
section .text
db 0x66, 0xB8
L31:
dd _ptrC2cPFR
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, 80
push eax
db 0x9A
section .relot
dd L32
section .text
L32:
dd _inicializarPC2c
sub sp, -16
; loc <something> : * struct <something>
; loc <something> : * struct <something>
; RPN'ized expression: "( FALSE , 16 , ptrE2PFR e2POrdenados -> *u &u (something34) , ptrC2cPFR POrdenados + *u &u (something33) inicializarPC2c ) "
; Expanded expression: " 0 16 ptrE2PFR *(4) 97776 + ptrC2cPFR *(4) 96 + inicializarPC2c ()16 "
; Fused expression: "( 0 , 16 , ptrE2PFR + *ax 97776 , ptrC2cPFR + *ax 96 , inicializarPC2c )16 "
push dword 0
push dword 16
section .relod
dd L35
section .text
db 0x66, 0xB8
L35:
dd _ptrE2PFR
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, 97776
push eax
section .relod
dd L36
section .text
db 0x66, 0xB8
L36:
dd _ptrC2cPFR
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, 96
push eax
db 0x9A
section .relot
dd L37
section .text
L37:
dd _inicializarPC2c
sub sp, -16
; loc <something> : * struct <something>
; loc <something> : * struct <something>
; RPN'ized expression: "( FALSE , 2010 , ptrE2PFR e2TDormidos -> *u &u (something39) , ptrC2cPFR TDormidos + *u &u (something38) inicializarPC2c ) "
; Expanded expression: " 0 2010 ptrE2PFR *(4) 97980 + ptrC2cPFR *(4) 112 + inicializarPC2c ()16 "
; Fused expression: "( 0 , 2010 , ptrE2PFR + *ax 97980 , ptrC2cPFR + *ax 112 , inicializarPC2c )16 "
push dword 0
push dword 2010
section .relod
dd L40
section .text
db 0x66, 0xB8
L40:
dd _ptrE2PFR
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, 97980
push eax
section .relod
dd L41
section .text
db 0x66, 0xB8
L41:
dd _ptrC2cPFR
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, 112
push eax
db 0x9A
section .relot
dd L42
section .text
L42:
dd _inicializarPC2c
sub sp, -16
; for
; RPN'ized expression: "i 1 = "
; Expanded expression: "(@-4) 1 =(4) "
; Fused expression: "=(204) *(@-4) 1 "
mov eax, 1
mov [bp-4], eax
L43:
; RPN'ized expression: "i numER 1 - < "
; Expanded expression: "(@-4) *(4) numER *(4) 1 - <u "
; Fused expression: "numER - *ax 1 <u *(@-4) ax IF! "
section .relod
dd L47
section .text
db 0x66, 0xB8
L47:
dd _numER
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
dec eax
mov ecx, eax
mov eax, [bp-4]
cmp eax, ecx
jae L46
; RPN'ized expression: "i ++p "
; Expanded expression: "(@-4) ++p(4) "
; {
; RPN'ized expression: "ind i = "
; Expanded expression: "(@-8) (@-4) *(4) =(4) "
; Fused expression: "=(204) *(@-8) *(@-4) "
mov eax, [bp-4]
mov [bp-8], eax
; RPN'ized expression: "ptrDescProceso i + *u &u pid -> *u i = "
; Expanded expression: "ptrDescProceso *(4) (@-4) *(4) 292 * + 0 + (@-4) *(4) =(4) "
; Fused expression: "ptrDescProceso push-ax * *(@-4) 292 + **sp ax + ax 0 =(204) *ax *(@-4) "
section .relod
dd L48
section .text
db 0x66, 0xB8
L48:
dd _ptrDescProceso
push eax
mov eax, [bp-4]
imul eax, eax, 292
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
mov ebx, eax
mov eax, [bp-4]
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], eax
; RPN'ized expression: "ptrDescProceso i + *u &u noStatus -> *u TRUE = "
; Expanded expression: "ptrDescProceso *(4) (@-4) *(4) 292 * + 4 + 1 =(4) "
; Fused expression: "ptrDescProceso push-ax * *(@-4) 292 + **sp ax + ax 4 =(204) *ax 1 "
section .relod
dd L49
section .text
db 0x66, 0xB8
L49:
dd _ptrDescProceso
push eax
mov eax, [bp-4]
imul eax, eax, 292
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 4
mov ebx, eax
mov eax, 1
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], eax
; RPN'ized expression: "ptrDescProceso i + *u &u ppindx -> *u 1 -u = "
; Expanded expression: "ptrDescProceso *(4) (@-4) *(4) 292 * + 12 + -1 =(4) "
; Fused expression: "ptrDescProceso push-ax * *(@-4) 292 + **sp ax + ax 12 =(204) *ax -1 "
section .relod
dd L50
section .text
db 0x66, 0xB8
L50:
dd _ptrDescProceso
push eax
mov eax, [bp-4]
imul eax, eax, 292
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 12
mov ebx, eax
mov eax, -1
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], eax
; RPN'ized expression: "ptrDescProceso i + *u &u hpindx -> *u 1 -u = "
; Expanded expression: "ptrDescProceso *(4) (@-4) *(4) 292 * + 16 + -1 =(4) "
; Fused expression: "ptrDescProceso push-ax * *(@-4) 292 + **sp ax + ax 16 =(204) *ax -1 "
section .relod
dd L51
section .text
db 0x66, 0xB8
L51:
dd _ptrDescProceso
push eax
mov eax, [bp-4]
imul eax, eax, 292
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 16
mov ebx, eax
mov eax, -1
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], eax
; loc <something> : * struct <something>
; loc <something> : * struct <something>
; RPN'ized expression: "( FALSE , 16 i + , ptrE2PFR e2Hijos -> *u &u (something53) , ptrDescProceso i + *u &u c2cHijos -> *u &u (something52) inicializarPC2c ) "
; Expanded expression: " 0 16 (@-4) *(4) + ptrE2PFR *(4) 24816 + ptrDescProceso *(4) (@-4) *(4) 292 * + 20 + inicializarPC2c ()16 "
; Fused expression: "( 0 , + 16 *(@-4) , ptrE2PFR + *ax 24816 , ptrDescProceso push-ax * *(@-4) 292 + **sp ax + ax 20 , inicializarPC2c )16 "
push dword 0
mov eax, 16
add eax, [bp-4]
push eax
section .relod
dd L54
section .text
db 0x66, 0xB8
L54:
dd _ptrE2PFR
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, 24816
push eax
section .relod
dd L55
section .text
db 0x66, 0xB8
L55:
dd _ptrDescProceso
push eax
mov eax, [bp-4]
imul eax, eax, 292
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 20
push eax
db 0x9A
section .relot
dd L56
section .text
L56:
dd _inicializarPC2c
sub sp, -16
; loc <something> : * struct <something>
; loc <something> : * struct <something>
; RPN'ized expression: "( FALSE , 2010 i + , ptrE2PFR e2Threads -> *u &u (something58) , ptrDescProceso i + *u &u c2cThreads -> *u &u (something57) inicializarPC2c ) "
; Expanded expression: " 0 2010 (@-4) *(4) + ptrE2PFR *(4) 25200 + ptrDescProceso *(4) (@-4) *(4) 292 * + 36 + inicializarPC2c ()16 "
; Fused expression: "( 0 , + 2010 *(@-4) , ptrE2PFR + *ax 25200 , ptrDescProceso push-ax * *(@-4) 292 + **sp ax + ax 36 , inicializarPC2c )16 "
push dword 0
mov eax, 2010
add eax, [bp-4]
push eax
section .relod
dd L59
section .text
db 0x66, 0xB8
L59:
dd _ptrE2PFR
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, 25200
push eax
section .relod
dd L60
section .text
db 0x66, 0xB8
L60:
dd _ptrDescProceso
push eax
mov eax, [bp-4]
imul eax, eax, 292
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 36
push eax
db 0x9A
section .relot
dd L61
section .text
L61:
dd _inicializarPC2c
sub sp, -16
; loc <something> : struct <something>
; RPN'ized expression: "ptrDescProceso i + *u &u CSProc -> *u reubicacion ind + *u &u destino -> *u <something62> sizeof - = "
; Expanded expression: "ptrDescProceso *(4) (@-4) *(4) 292 * + 52 + reubicacion *(4) (@-8) *(4) 88 * + 84 + *(4) 32u - =(2) "
; Fused expression: "ptrDescProceso push-ax * *(@-4) 292 + **sp ax + ax 52 push-ax reubicacion push-ax * *(@-8) 88 + **sp ax + ax 84 - *ax 32u =(172) **sp ax "
section .relod
dd L63
section .text
db 0x66, 0xB8
L63:
dd _ptrDescProceso
push eax
mov eax, [bp-4]
imul eax, eax, 292
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 52
push eax
section .relod
dd L64
section .text
db 0x66, 0xB8
L64:
dd _reubicacion
push eax
mov eax, [bp-8]
imul eax, eax, 88
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 84
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
sub eax, 32
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], ax
movzx eax, ax
; RPN'ized expression: "ptrDescProceso i + *u &u tam -> *u reubicacion ind + *u &u entradaDF -> *u &u SS -> *u = "
; Expanded expression: "ptrDescProceso *(4) (@-4) *(4) 292 * + 60 + reubicacion *(4) (@-8) *(4) 88 * + 0 + 72 + *(2) =(2) "
; Fused expression: "ptrDescProceso push-ax * *(@-4) 292 + **sp ax + ax 60 push-ax reubicacion push-ax * *(@-8) 88 + **sp ax + ax 0 + ax 72 =(170) **sp *ax "
section .relod
dd L65
section .text
db 0x66, 0xB8
L65:
dd _ptrDescProceso
push eax
mov eax, [bp-4]
imul eax, eax, 292
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 60
push eax
section .relod
dd L66
section .text
db 0x66, 0xB8
L66:
dd _reubicacion
push eax
mov eax, [bp-8]
imul eax, eax, 88
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 72
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov ax, [si]
movzx eax, ax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], ax
movzx eax, ax
; RPN'ized expression: "ptrDescProceso i + *u &u tamFichero -> *u reubicacion ind + *u &u entradaDF -> *u &u tam -> *u = "
; Expanded expression: "ptrDescProceso *(4) (@-4) *(4) 292 * + 64 + reubicacion *(4) (@-8) *(4) 88 * + 0 + 60 + *(4) =(4) "
; Fused expression: "ptrDescProceso push-ax * *(@-4) 292 + **sp ax + ax 64 push-ax reubicacion push-ax * *(@-8) 88 + **sp ax + ax 0 + ax 60 =(204) **sp *ax "
section .relod
dd L67
section .text
db 0x66, 0xB8
L67:
dd _ptrDescProceso
push eax
mov eax, [bp-4]
imul eax, eax, 292
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 64
push eax
section .relod
dd L68
section .text
db 0x66, 0xB8
L68:
dd _reubicacion
push eax
mov eax, [bp-8]
imul eax, eax, 88
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 60
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], eax
; RPN'ized expression: "( ptrDescProceso i + *u &u programa -> *u &u , reubicacion ind + *u &u entradaDF -> *u &u nombre -> *u &u strcpy ) "
; Expanded expression: " ptrDescProceso *(4) (@-4) *(4) 292 * + 68 + reubicacion *(4) (@-8) *(4) 88 * + 0 + 0 + strcpy ()8 "
; Fused expression: "( ptrDescProceso push-ax * *(@-4) 292 + **sp ax + ax 68 , reubicacion push-ax * *(@-8) 88 + **sp ax + ax 0 + ax 0 , strcpy )8 "
section .relod
dd L69
section .text
db 0x66, 0xB8
L69:
dd _ptrDescProceso
push eax
mov eax, [bp-4]
imul eax, eax, 292
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 68
push eax
section .relod
dd L70
section .text
db 0x66, 0xB8
L70:
dd _reubicacion
push eax
mov eax, [bp-8]
imul eax, eax, 88
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
push eax
db 0x9A
section .relot
dd L71
section .text
L71:
dd _strcpy
sub sp, -8
; loc <something> : * struct <something>
; RPN'ized expression: "( ptrC2cPFR DPOcupados + *u &u (something72) , i apilarPC2c ) "
; Expanded expression: " ptrC2cPFR *(4) 16 + (@-4) *(4) apilarPC2c ()8 "
; Fused expression: "( ptrC2cPFR + *ax 16 , *(4) (@-4) , apilarPC2c )8 "
section .relod
dd L73
section .text
db 0x66, 0xB8
L73:
dd _ptrC2cPFR
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, 16
push eax
push dword [bp-4]
db 0x9A
section .relot
dd L74
section .text
L74:
dd _apilarPC2c
sub sp, -8
; loc <something> : * struct <something>
; RPN'ized expression: "( ptrC2cPFR POrdenados + *u &u (something75) , i apilarPC2c ) "
; Expanded expression: " ptrC2cPFR *(4) 96 + (@-4) *(4) apilarPC2c ()8 "
; Fused expression: "( ptrC2cPFR + *ax 96 , *(4) (@-4) , apilarPC2c )8 "
section .relod
dd L76
section .text
db 0x66, 0xB8
L76:
dd _ptrC2cPFR
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, 96
push eax
push dword [bp-4]
db 0x9A
section .relot
dd L77
section .text
L77:
dd _apilarPC2c
sub sp, -8
; RPN'ized expression: "ptrDescThread i + *u &u SP0 -> *u reubicacion ind + *u &u entradaDF -> *u &u SP0 -> *u = "
; Expanded expression: "ptrDescThread *(4) (@-4) *(4) 40 * + 38 + reubicacion *(4) (@-8) *(4) 88 * + 0 + 74 + *(2) =(2) "
; Fused expression: "ptrDescThread push-ax * *(@-4) 40 + **sp ax + ax 38 push-ax reubicacion push-ax * *(@-8) 88 + **sp ax + ax 0 + ax 74 =(170) **sp *ax "
section .relod
dd L78
section .text
db 0x66, 0xB8
L78:
dd _ptrDescThread
push eax
mov eax, [bp-4]
imul eax, eax, 40
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 38
push eax
section .relod
dd L79
section .text
db 0x66, 0xB8
L79:
dd _reubicacion
push eax
mov eax, [bp-8]
imul eax, eax, 88
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 74
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov ax, [si]
movzx eax, ax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], ax
movzx eax, ax
; RPN'ized expression: "ptrDescThread i + *u &u tid -> *u i = "
; Expanded expression: "ptrDescThread *(4) (@-4) *(4) 40 * + 0 + (@-4) *(4) =(4) "
; Fused expression: "ptrDescThread push-ax * *(@-4) 40 + **sp ax + ax 0 =(204) *ax *(@-4) "
section .relod
dd L80
section .text
db 0x66, 0xB8
L80:
dd _ptrDescThread
push eax
mov eax, [bp-4]
imul eax, eax, 40
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
mov ebx, eax
mov eax, [bp-4]
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], eax
; RPN'ized expression: "ptrDescThread i + *u &u estado -> *u preparado = "
; Expanded expression: "ptrDescThread *(4) (@-4) *(4) 40 * + 4 + 1 =(4) "
; Fused expression: "ptrDescThread push-ax * *(@-4) 40 + **sp ax + ax 4 =(204) *ax 1 "
section .relod
dd L81
section .text
db 0x66, 0xB8
L81:
dd _ptrDescThread
push eax
mov eax, [bp-4]
imul eax, eax, 40
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 4
mov ebx, eax
mov eax, 1
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], eax
; RPN'ized expression: "ptrDescThread i + *u &u trama -> *u tw -> *u &u DS -> *u ptrDescProceso i + *u &u CSProc -> *u 4 >> = "
; Expanded expression: "ptrDescThread *(4) (@-4) *(4) 40 * + 12 + *(4) 0 + 0 + ptrDescProceso *(4) (@-4) *(4) 292 * + 52 + *(2) 4 >> =(2) "
; Fused expression: "ptrDescThread push-ax * *(@-4) 40 + **sp ax + ax 12 + *ax 0 + ax 0 push-ax ptrDescProceso push-ax * *(@-4) 292 + **sp ax + ax 52 >> *ax 4 =(172) **sp ax "
section .relod
dd L82
section .text
db 0x66, 0xB8
L82:
dd _ptrDescThread
push eax
mov eax, [bp-4]
imul eax, eax, 40
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 12
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
push eax
section .relod
dd L83
section .text
db 0x66, 0xB8
L83:
dd _ptrDescProceso
push eax
mov eax, [bp-4]
imul eax, eax, 292
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 52
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov ax, [si]
movzx eax, ax
sar eax, 4
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], ax
movzx eax, ax
; RPN'ized expression: "ptrDescThread i + *u &u trama -> *u tw -> *u &u ES -> *u ptrDescProceso i + *u &u CSProc -> *u 4 >> = "
; Expanded expression: "ptrDescThread *(4) (@-4) *(4) 40 * + 12 + *(4) 0 + 2 + ptrDescProceso *(4) (@-4) *(4) 292 * + 52 + *(2) 4 >> =(2) "
; Fused expression: "ptrDescThread push-ax * *(@-4) 40 + **sp ax + ax 12 + *ax 0 + ax 2 push-ax ptrDescProceso push-ax * *(@-4) 292 + **sp ax + ax 52 >> *ax 4 =(172) **sp ax "
section .relod
dd L84
section .text
db 0x66, 0xB8
L84:
dd _ptrDescThread
push eax
mov eax, [bp-4]
imul eax, eax, 40
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 12
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, 2
push eax
section .relod
dd L85
section .text
db 0x66, 0xB8
L85:
dd _ptrDescProceso
push eax
mov eax, [bp-4]
imul eax, eax, 292
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 52
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov ax, [si]
movzx eax, ax
sar eax, 4
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], ax
movzx eax, ax
; RPN'ized expression: "ptrDescThread i + *u &u trama -> *u td -> *u &u EDI -> *u 0 = "
; Expanded expression: "ptrDescThread *(4) (@-4) *(4) 40 * + 12 + *(4) 0 + 4 + 0 =(4) "
; Fused expression: "ptrDescThread push-ax * *(@-4) 40 + **sp ax + ax 12 + *ax 0 + ax 4 =(204) *ax 0 "
section .relod
dd L86
section .text
db 0x66, 0xB8
L86:
dd _ptrDescThread
push eax
mov eax, [bp-4]
imul eax, eax, 40
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 12
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, 4
mov ebx, eax
mov eax, 0
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], eax
; RPN'ized expression: "ptrDescThread i + *u &u trama -> *u td -> *u &u ESI -> *u 0 = "
; Expanded expression: "ptrDescThread *(4) (@-4) *(4) 40 * + 12 + *(4) 0 + 8 + 0 =(4) "
; Fused expression: "ptrDescThread push-ax * *(@-4) 40 + **sp ax + ax 12 + *ax 0 + ax 8 =(204) *ax 0 "
section .relod
dd L87
section .text
db 0x66, 0xB8
L87:
dd _ptrDescThread
push eax
mov eax, [bp-4]
imul eax, eax, 40
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 12
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, 8
mov ebx, eax
mov eax, 0
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], eax
; RPN'ized expression: "ptrDescThread i + *u &u trama -> *u td -> *u &u EBP -> *u ptrDescThread i + *u &u SP0 -> *u = "
; Expanded expression: "ptrDescThread *(4) (@-4) *(4) 40 * + 12 + *(4) 0 + 12 + ptrDescThread *(4) (@-4) *(4) 40 * + 38 + *(2) =(4) "
; Fused expression: "ptrDescThread push-ax * *(@-4) 40 + **sp ax + ax 12 + *ax 0 + ax 12 push-ax ptrDescThread push-ax * *(@-4) 40 + **sp ax + ax 38 =(202) **sp *ax "
section .relod
dd L88
section .text
db 0x66, 0xB8
L88:
dd _ptrDescThread
push eax
mov eax, [bp-4]
imul eax, eax, 40
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 12
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, 12
push eax
section .relod
dd L89
section .text
db 0x66, 0xB8
L89:
dd _ptrDescThread
push eax
mov eax, [bp-4]
imul eax, eax, 40
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 38
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov ax, [si]
movzx eax, ax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], eax
; RPN'ized expression: "ptrDescThread i + *u &u trama -> *u td -> *u &u ESP -> *u ptrDescThread i + *u &u SP0 -> *u 6 - = "
; Expanded expression: "ptrDescThread *(4) (@-4) *(4) 40 * + 12 + *(4) 0 + 16 + ptrDescThread *(4) (@-4) *(4) 40 * + 38 + *(2) 6 - =(4) "
; Fused expression: "ptrDescThread push-ax * *(@-4) 40 + **sp ax + ax 12 + *ax 0 + ax 16 push-ax ptrDescThread push-ax * *(@-4) 40 + **sp ax + ax 38 - *ax 6 =(204) **sp ax "
section .relod
dd L90
section .text
db 0x66, 0xB8
L90:
dd _ptrDescThread
push eax
mov eax, [bp-4]
imul eax, eax, 40
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 12
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, 16
push eax
section .relod
dd L91
section .text
db 0x66, 0xB8
L91:
dd _ptrDescThread
push eax
mov eax, [bp-4]
imul eax, eax, 40
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 38
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov ax, [si]
movzx eax, ax
sub eax, 6
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], eax
; RPN'ized expression: "ptrDescThread i + *u &u trama -> *u td -> *u &u EBX -> *u 0 = "
; Expanded expression: "ptrDescThread *(4) (@-4) *(4) 40 * + 12 + *(4) 0 + 20 + 0 =(4) "
; Fused expression: "ptrDescThread push-ax * *(@-4) 40 + **sp ax + ax 12 + *ax 0 + ax 20 =(204) *ax 0 "
section .relod
dd L92
section .text
db 0x66, 0xB8
L92:
dd _ptrDescThread
push eax
mov eax, [bp-4]
imul eax, eax, 40
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 12
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, 20
mov ebx, eax
mov eax, 0
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], eax
; RPN'ized expression: "ptrDescThread i + *u &u trama -> *u td -> *u &u EDX -> *u 0 = "
; Expanded expression: "ptrDescThread *(4) (@-4) *(4) 40 * + 12 + *(4) 0 + 24 + 0 =(4) "
; Fused expression: "ptrDescThread push-ax * *(@-4) 40 + **sp ax + ax 12 + *ax 0 + ax 24 =(204) *ax 0 "
section .relod
dd L93
section .text
db 0x66, 0xB8
L93:
dd _ptrDescThread
push eax
mov eax, [bp-4]
imul eax, eax, 40
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 12
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, 24
mov ebx, eax
mov eax, 0
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], eax
; RPN'ized expression: "ptrDescThread i + *u &u trama -> *u td -> *u &u ECX -> *u 0 = "
; Expanded expression: "ptrDescThread *(4) (@-4) *(4) 40 * + 12 + *(4) 0 + 28 + 0 =(4) "
; Fused expression: "ptrDescThread push-ax * *(@-4) 40 + **sp ax + ax 12 + *ax 0 + ax 28 =(204) *ax 0 "
section .relod
dd L94
section .text
db 0x66, 0xB8
L94:
dd _ptrDescThread
push eax
mov eax, [bp-4]
imul eax, eax, 40
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 12
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, 28
mov ebx, eax
mov eax, 0
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], eax
; RPN'ized expression: "ptrDescThread i + *u &u trama -> *u td -> *u &u EAX -> *u 0 = "
; Expanded expression: "ptrDescThread *(4) (@-4) *(4) 40 * + 12 + *(4) 0 + 32 + 0 =(4) "
; Fused expression: "ptrDescThread push-ax * *(@-4) 40 + **sp ax + ax 12 + *ax 0 + ax 32 =(204) *ax 0 "
section .relod
dd L95
section .text
db 0x66, 0xB8
L95:
dd _ptrDescThread
push eax
mov eax, [bp-4]
imul eax, eax, 40
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 12
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, 32
mov ebx, eax
mov eax, 0
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], eax
; RPN'ized expression: "ptrDescThread i + *u &u trama -> *u tw -> *u &u IP -> *u reubicacion ind + *u &u entradaDF -> *u &u start -> *u = "
; Expanded expression: "ptrDescThread *(4) (@-4) *(4) 40 * + 12 + *(4) 0 + 36 + reubicacion *(4) (@-8) *(4) 88 * + 0 + 64 + *(4) =(2) "
; Fused expression: "ptrDescThread push-ax * *(@-4) 40 + **sp ax + ax 12 + *ax 0 + ax 36 push-ax reubicacion push-ax * *(@-8) 88 + **sp ax + ax 0 + ax 64 =(172) **sp *ax "
section .relod
dd L96
section .text
db 0x66, 0xB8
L96:
dd _ptrDescThread
push eax
mov eax, [bp-4]
imul eax, eax, 40
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 12
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, 36
push eax
section .relod
dd L97
section .text
db 0x66, 0xB8
L97:
dd _reubicacion
push eax
mov eax, [bp-8]
imul eax, eax, 88
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 64
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], ax
movzx eax, ax
; RPN'ized expression: "ptrDescThread i + *u &u trama -> *u tw -> *u &u CS -> *u ptrDescProceso i + *u &u CSProc -> *u 4 >> = "
; Expanded expression: "ptrDescThread *(4) (@-4) *(4) 40 * + 12 + *(4) 0 + 38 + ptrDescProceso *(4) (@-4) *(4) 292 * + 52 + *(2) 4 >> =(2) "
; Fused expression: "ptrDescThread push-ax * *(@-4) 40 + **sp ax + ax 12 + *ax 0 + ax 38 push-ax ptrDescProceso push-ax * *(@-4) 292 + **sp ax + ax 52 >> *ax 4 =(172) **sp ax "
section .relod
dd L98
section .text
db 0x66, 0xB8
L98:
dd _ptrDescThread
push eax
mov eax, [bp-4]
imul eax, eax, 40
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 12
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, 38
push eax
section .relod
dd L99
section .text
db 0x66, 0xB8
L99:
dd _ptrDescProceso
push eax
mov eax, [bp-4]
imul eax, eax, 292
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 52
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov ax, [si]
movzx eax, ax
sar eax, 4
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], ax
movzx eax, ax
; RPN'ized expression: "ptrDescThread i + *u &u trama -> *u tw -> *u &u Flags -> *u 514 = "
; Expanded expression: "ptrDescThread *(4) (@-4) *(4) 40 * + 12 + *(4) 0 + 40 + 514 =(2) "
; Fused expression: "ptrDescThread push-ax * *(@-4) 40 + **sp ax + ax 12 + *ax 0 + ax 40 =(172) *ax 514 "
section .relod
dd L100
section .text
db 0x66, 0xB8
L100:
dd _ptrDescThread
push eax
mov eax, [bp-4]
imul eax, eax, 40
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 12
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, 40
mov ebx, eax
mov eax, 514
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], ax
movzx eax, ax
; RPN'ized expression: "ptrDescThread i + *u &u noStatus -> *u TRUE = "
; Expanded expression: "ptrDescThread *(4) (@-4) *(4) 40 * + 16 + 1 =(4) "
; Fused expression: "ptrDescThread push-ax * *(@-4) 40 + **sp ax + ax 16 =(204) *ax 1 "
section .relod
dd L101
section .text
db 0x66, 0xB8
L101:
dd _ptrDescThread
push eax
mov eax, [bp-4]
imul eax, eax, 40
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 16
mov ebx, eax
mov eax, 1
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], eax
; RPN'ized expression: "ptrDescThread i + *u &u ptindx -> *u 1 -u = "
; Expanded expression: "ptrDescThread *(4) (@-4) *(4) 40 * + 24 + -1 =(4) "
; Fused expression: "ptrDescThread push-ax * *(@-4) 40 + **sp ax + ax 24 =(204) *ax -1 "
section .relod
dd L102
section .text
db 0x66, 0xB8
L102:
dd _ptrDescThread
push eax
mov eax, [bp-4]
imul eax, eax, 40
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 24
mov ebx, eax
mov eax, -1
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], eax
; RPN'ized expression: "ptrDescThread i + *u &u htindx -> *u 1 -u = "
; Expanded expression: "ptrDescThread *(4) (@-4) *(4) 40 * + 28 + -1 =(4) "
; Fused expression: "ptrDescThread push-ax * *(@-4) 40 + **sp ax + ax 28 =(204) *ax -1 "
section .relod
dd L103
section .text
db 0x66, 0xB8
L103:
dd _ptrDescThread
push eax
mov eax, [bp-4]
imul eax, eax, 40
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 28
mov ebx, eax
mov eax, -1
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], eax
; RPN'ized expression: "ptrDescThread i + *u &u pindx -> *u i = "
; Expanded expression: "ptrDescThread *(4) (@-4) *(4) 40 * + 32 + (@-4) *(4) =(4) "
; Fused expression: "ptrDescThread push-ax * *(@-4) 40 + **sp ax + ax 32 =(204) *ax *(@-4) "
section .relod
dd L104
section .text
db 0x66, 0xB8
L104:
dd _ptrDescThread
push eax
mov eax, [bp-4]
imul eax, eax, 40
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 32
mov ebx, eax
mov eax, [bp-4]
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], eax
; loc <something> : * struct <something>
; RPN'ized expression: "( ptrC2cPFR DTOcupados + *u &u (something105) , i apilarPC2c ) "
; Expanded expression: " ptrC2cPFR *(4) 48 + (@-4) *(4) apilarPC2c ()8 "
; Fused expression: "( ptrC2cPFR + *ax 48 , *(4) (@-4) , apilarPC2c )8 "
section .relod
dd L106
section .text
db 0x66, 0xB8
L106:
dd _ptrC2cPFR
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, 48
push eax
push dword [bp-4]
db 0x9A
section .relot
dd L107
section .text
L107:
dd _apilarPC2c
sub sp, -8
; loc <something> : * struct <something>
; RPN'ized expression: "( ptrDescProceso i + *u &u c2cThreads -> *u &u (something108) , i apilarPC2c ) "
; Expanded expression: " ptrDescProceso *(4) (@-4) *(4) 292 * + 36 + (@-4) *(4) apilarPC2c ()8 "
; Fused expression: "( ptrDescProceso push-ax * *(@-4) 292 + **sp ax + ax 36 , *(4) (@-4) , apilarPC2c )8 "
section .relod
dd L109
section .text
db 0x66, 0xB8
L109:
dd _ptrDescProceso
push eax
mov eax, [bp-4]
imul eax, eax, 292
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 36
push eax
push dword [bp-4]
db 0x9A
section .relot
dd L110
section .text
L110:
dd _apilarPC2c
sub sp, -8
; }
L44:
; Fused expression: "++p(4) *(@-4) "
mov eax, [bp-4]
inc dword [bp-4]
jmp L43
L46:
; loc <something> : struct <something>
; RPN'ized expression: "ptrSS_Kernel *u dirInicial <something111> sizeof - 4 >> reubicacion 2 + *u &u entradaDF -> *u &u SS -> *u + = "
; Expanded expression: "ptrSS_Kernel *(4) dirInicial *(4) 32u - 4 >>u reubicacion *(4) 176 + 0 + 72 + *(2) + =(2) "
; Fused expression: "ptrSS_Kernel *(4) ax push-ax dirInicial - *ax 32u >>u ax 4 push-ax reubicacion + *ax 176 + ax 0 + ax 72 + *sp *ax =(172) **sp ax "
section .relod
dd L112
section .text
db 0x66, 0xB8
L112:
dd _ptrSS_Kernel
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
push eax
section .relod
dd L113
section .text
db 0x66, 0xB8
L113:
dd _dirInicial
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
sub eax, 32
shr eax, 4
push eax
section .relod
dd L114
section .text
db 0x66, 0xB8
L114:
dd _reubicacion
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, 176
add eax, 72
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
movzx ecx, word [si]
pop eax
add eax, ecx
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], ax
movzx eax, ax
; RPN'ized expression: "ptrSP0_Kernel *u reubicacion 2 + *u &u entradaDF -> *u &u SP0 -> *u = "
; Expanded expression: "ptrSP0_Kernel *(4) reubicacion *(4) 176 + 0 + 74 + *(2) =(2) "
; Fused expression: "ptrSP0_Kernel *(4) ax push-ax reubicacion + *ax 176 + ax 0 + ax 74 =(170) **sp *ax "
section .relod
dd L115
section .text
db 0x66, 0xB8
L115:
dd _ptrSP0_Kernel
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
push eax
section .relod
dd L116
section .text
db 0x66, 0xB8
L116:
dd _reubicacion
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, 176
add eax, 74
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov ax, [si]
movzx eax, ax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], ax
movzx eax, ax
; for
; RPN'ized expression: "i 16 1 - = "
; Expanded expression: "(@-4) 15 =(4) "
; Fused expression: "=(204) *(@-4) 15 "
mov eax, 15
mov [bp-4], eax
L117:
; RPN'ized expression: "i numER 1 - >= "
; Expanded expression: "(@-4) *(4) numER *(4) 1 - >=u "
; Fused expression: "numER - *ax 1 >=u *(@-4) ax IF! "
section .relod
dd L121
section .text
db 0x66, 0xB8
L121:
dd _numER
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
dec eax
mov ecx, eax
mov eax, [bp-4]
cmp eax, ecx
jb L120
; RPN'ized expression: "i --p "
; Expanded expression: "(@-4) --p(4) "
; {
; RPN'ized expression: "ptrDescProceso i + *u &u pid -> *u 1 -u = "
; Expanded expression: "ptrDescProceso *(4) (@-4) *(4) 292 * + 0 + -1 =(4) "
; Fused expression: "ptrDescProceso push-ax * *(@-4) 292 + **sp ax + ax 0 =(204) *ax -1 "
section .relod
dd L122
section .text
db 0x66, 0xB8
L122:
dd _ptrDescProceso
push eax
mov eax, [bp-4]
imul eax, eax, 292
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
mov ebx, eax
mov eax, -1
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], eax
; RPN'ized expression: "ptrDescProceso i + *u &u uid -> *u 1 -u = "
; Expanded expression: "ptrDescProceso *(4) (@-4) *(4) 292 * + 284 + -1 =(4) "
; Fused expression: "ptrDescProceso push-ax * *(@-4) 292 + **sp ax + ax 284 =(204) *ax -1 "
section .relod
dd L123
section .text
db 0x66, 0xB8
L123:
dd _ptrDescProceso
push eax
mov eax, [bp-4]
imul eax, eax, 292
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 284
mov ebx, eax
mov eax, -1
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], eax
; RPN'ized expression: "ptrDescProceso i + *u &u gid -> *u 1 -u = "
; Expanded expression: "ptrDescProceso *(4) (@-4) *(4) 292 * + 288 + -1 =(4) "
; Fused expression: "ptrDescProceso push-ax * *(@-4) 292 + **sp ax + ax 288 =(204) *ax -1 "
section .relod
dd L124
section .text
db 0x66, 0xB8
L124:
dd _ptrDescProceso
push eax
mov eax, [bp-4]
imul eax, eax, 292
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 288
mov ebx, eax
mov eax, -1
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], eax
; RPN'ized expression: "ptrDescProceso i + *u &u ppindx -> *u 1 -u = "
; Expanded expression: "ptrDescProceso *(4) (@-4) *(4) 292 * + 12 + -1 =(4) "
; Fused expression: "ptrDescProceso push-ax * *(@-4) 292 + **sp ax + ax 12 =(204) *ax -1 "
section .relod
dd L125
section .text
db 0x66, 0xB8
L125:
dd _ptrDescProceso
push eax
mov eax, [bp-4]
imul eax, eax, 292
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 12
mov ebx, eax
mov eax, -1
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], eax
; RPN'ized expression: "ptrDescProceso i + *u &u hpindx -> *u 1 -u = "
; Expanded expression: "ptrDescProceso *(4) (@-4) *(4) 292 * + 16 + -1 =(4) "
; Fused expression: "ptrDescProceso push-ax * *(@-4) 292 + **sp ax + ax 16 =(204) *ax -1 "
section .relod
dd L126
section .text
db 0x66, 0xB8
L126:
dd _ptrDescProceso
push eax
mov eax, [bp-4]
imul eax, eax, 292
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 16
mov ebx, eax
mov eax, -1
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], eax
; RPN'ized expression: "ptrDescProceso i + *u &u CSProc -> *u 0 = "
; Expanded expression: "ptrDescProceso *(4) (@-4) *(4) 292 * + 52 + 0 =(2) "
; Fused expression: "ptrDescProceso push-ax * *(@-4) 292 + **sp ax + ax 52 =(172) *ax 0 "
section .relod
dd L127
section .text
db 0x66, 0xB8
L127:
dd _ptrDescProceso
push eax
mov eax, [bp-4]
imul eax, eax, 292
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 52
mov ebx, eax
mov eax, 0
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], ax
movzx eax, ax
; RPN'ized expression: "ptrDescProceso i + *u &u tam -> *u 0 = "
; Expanded expression: "ptrDescProceso *(4) (@-4) *(4) 292 * + 60 + 0 =(2) "
; Fused expression: "ptrDescProceso push-ax * *(@-4) 292 + **sp ax + ax 60 =(172) *ax 0 "
section .relod
dd L128
section .text
db 0x66, 0xB8
L128:
dd _ptrDescProceso
push eax
mov eax, [bp-4]
imul eax, eax, 292
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 60
mov ebx, eax
mov eax, 0
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], ax
movzx eax, ax
; RPN'ized expression: "ptrDescProceso i + *u &u tamCodigo -> *u 0 = "
; Expanded expression: "ptrDescProceso *(4) (@-4) *(4) 292 * + 54 + 0 =(2) "
; Fused expression: "ptrDescProceso push-ax * *(@-4) 292 + **sp ax + ax 54 =(172) *ax 0 "
section .relod
dd L129
section .text
db 0x66, 0xB8
L129:
dd _ptrDescProceso
push eax
mov eax, [bp-4]
imul eax, eax, 292
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 54
mov ebx, eax
mov eax, 0
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], ax
movzx eax, ax
; RPN'ized expression: "ptrDescProceso i + *u &u desplBSS -> *u 0 = "
; Expanded expression: "ptrDescProceso *(4) (@-4) *(4) 292 * + 56 + 0 =(2) "
; Fused expression: "ptrDescProceso push-ax * *(@-4) 292 + **sp ax + ax 56 =(172) *ax 0 "
section .relod
dd L130
section .text
db 0x66, 0xB8
L130:
dd _ptrDescProceso
push eax
mov eax, [bp-4]
imul eax, eax, 292
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 56
mov ebx, eax
mov eax, 0
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], ax
movzx eax, ax
; RPN'ized expression: "ptrDescProceso i + *u &u desplPila -> *u 0 = "
; Expanded expression: "ptrDescProceso *(4) (@-4) *(4) 292 * + 58 + 0 =(2) "
; Fused expression: "ptrDescProceso push-ax * *(@-4) 292 + **sp ax + ax 58 =(172) *ax 0 "
section .relod
dd L131
section .text
db 0x66, 0xB8
L131:
dd _ptrDescProceso
push eax
mov eax, [bp-4]
imul eax, eax, 292
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 58
mov ebx, eax
mov eax, 0
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], ax
movzx eax, ax
; RPN'ized expression: "ptrDescProceso i + *u &u tamFichero -> *u 0 = "
; Expanded expression: "ptrDescProceso *(4) (@-4) *(4) 292 * + 64 + 0 =(4) "
; Fused expression: "ptrDescProceso push-ax * *(@-4) 292 + **sp ax + ax 64 =(204) *ax 0 "
section .relod
dd L132
section .text
db 0x66, 0xB8
L132:
dd _ptrDescProceso
push eax
mov eax, [bp-4]
imul eax, eax, 292
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 64
mov ebx, eax
mov eax, 0
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], eax
; loc <something> : char
; RPN'ized expression: "ptrDescProceso i + *u &u programa -> *u 0 + *u 0 (something133) = "
; Expanded expression: "ptrDescProceso *(4) (@-4) *(4) 292 * + 68 + 0 =(-1) "
; Fused expression: "ptrDescProceso push-ax * *(@-4) 292 + **sp ax + ax 68 =(124) *ax 0 "
section .relod
dd L134
section .text
db 0x66, 0xB8
L134:
dd _ptrDescProceso
push eax
mov eax, [bp-4]
imul eax, eax, 292
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 68
mov ebx, eax
mov eax, 0
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], al
movsx eax, al
; loc <something> : * struct <something>
; RPN'ized expression: "( ptrC2cPFR DPLibres + *u &u (something135) , i apilarPC2c ) "
; Expanded expression: " ptrC2cPFR *(4) 0 + (@-4) *(4) apilarPC2c ()8 "
; Fused expression: "( ptrC2cPFR + *ax 0 , *(4) (@-4) , apilarPC2c )8 "
section .relod
dd L136
section .text
db 0x66, 0xB8
L136:
dd _ptrC2cPFR
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
push eax
push dword [bp-4]
db 0x9A
section .relot
dd L137
section .text
L137:
dd _apilarPC2c
sub sp, -8
; }
L118:
; Fused expression: "--p(4) *(@-4) "
mov eax, [bp-4]
dec dword [bp-4]
jmp L117
L120:
; for
; RPN'ized expression: "i 2010 1 - = "
; Expanded expression: "(@-4) 2009 =(4) "
; Fused expression: "=(204) *(@-4) 2009 "
mov eax, 2009
mov [bp-4], eax
L138:
; RPN'ized expression: "i 0 > "
; Expanded expression: "(@-4) *(4) 0 > "
; Fused expression: "> *(@-4) 0 IF! "
mov eax, [bp-4]
cmp eax, 0
jle L141
; RPN'ized expression: "i --p "
; Expanded expression: "(@-4) --p(4) "
; {
; RPN'ized expression: "ptrDescThread i + *u &u tid -> *u 1 -u = "
; Expanded expression: "ptrDescThread *(4) (@-4) *(4) 40 * + 0 + -1 =(4) "
; Fused expression: "ptrDescThread push-ax * *(@-4) 40 + **sp ax + ax 0 =(204) *ax -1 "
section .relod
dd L142
section .text
db 0x66, 0xB8
L142:
dd _ptrDescThread
push eax
mov eax, [bp-4]
imul eax, eax, 40
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
mov ebx, eax
mov eax, -1
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], eax
; RPN'ized expression: "ptrDescThread i + *u &u estado -> *u libre = "
; Expanded expression: "ptrDescThread *(4) (@-4) *(4) 40 * + 4 + 0 =(4) "
; Fused expression: "ptrDescThread push-ax * *(@-4) 40 + **sp ax + ax 4 =(204) *ax 0 "
section .relod
dd L143
section .text
db 0x66, 0xB8
L143:
dd _ptrDescThread
push eax
mov eax, [bp-4]
imul eax, eax, 40
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 4
mov ebx, eax
mov eax, 0
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], eax
; RPN'ized expression: "ptrDescThread i + *u &u pindx -> *u 1 -u = "
; Expanded expression: "ptrDescThread *(4) (@-4) *(4) 40 * + 32 + -1 =(4) "
; Fused expression: "ptrDescThread push-ax * *(@-4) 40 + **sp ax + ax 32 =(204) *ax -1 "
section .relod
dd L144
section .text
db 0x66, 0xB8
L144:
dd _ptrDescThread
push eax
mov eax, [bp-4]
imul eax, eax, 40
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 32
mov ebx, eax
mov eax, -1
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], eax
; RPN'ized expression: "ptrDescThread i + *u &u SSThread -> *u 0 = "
; Expanded expression: "ptrDescThread *(4) (@-4) *(4) 40 * + 36 + 0 =(2) "
; Fused expression: "ptrDescThread push-ax * *(@-4) 40 + **sp ax + ax 36 =(172) *ax 0 "
section .relod
dd L145
section .text
db 0x66, 0xB8
L145:
dd _ptrDescThread
push eax
mov eax, [bp-4]
imul eax, eax, 40
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 36
mov ebx, eax
mov eax, 0
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], ax
movzx eax, ax
; RPN'ized expression: "ptrDescThread i + *u &u SP0 -> *u 0 = "
; Expanded expression: "ptrDescThread *(4) (@-4) *(4) 40 * + 38 + 0 =(2) "
; Fused expression: "ptrDescThread push-ax * *(@-4) 40 + **sp ax + ax 38 =(172) *ax 0 "
section .relod
dd L146
section .text
db 0x66, 0xB8
L146:
dd _ptrDescThread
push eax
mov eax, [bp-4]
imul eax, eax, 40
mov ecx, eax
pop ebx
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, ecx
add eax, 38
mov ebx, eax
mov eax, 0
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov [si], ax
movzx eax, ax
; loc <something> : * struct <something>
; RPN'ized expression: "( ptrC2cPFR DTLibres + *u &u (something147) , i apilarPC2c ) "
; Expanded expression: " ptrC2cPFR *(4) 32 + (@-4) *(4) apilarPC2c ()8 "
; Fused expression: "( ptrC2cPFR + *ax 32 , *(4) (@-4) , apilarPC2c )8 "
section .relod
dd L148
section .text
db 0x66, 0xB8
L148:
dd _ptrC2cPFR
mov ebx, eax
mov esi, ebx
ror esi, 4
mov ds, si
shr esi, 28
mov eax, [si]
add eax, 32
push eax
push dword [bp-4]
db 0x9A
section .relot
dd L149
section .text
L149:
dd _apilarPC2c
sub sp, -8
; }
L139:
; Fused expression: "--p(4) *(@-4) "
mov eax, [bp-4]
dec dword [bp-4]
jmp L138
L141:
L1:
db 0x66
leave
retf
L150:
section .fxnsz noalloc
dd L150 - _inicProcesos_x
extern _inicializarPC2c
extern _numER
extern _reubicacion
extern _strcpy
extern _apilarPC2c
extern _dirInicial
; Syntax/declaration table/stack:
; Bytes used: 10985/40960
; Macro table:
; Macro __SMALLER_C__ = `0x0100`
; Macro __SMALLER_C_32__ = ``
; Macro __HUGE__ = ``
; Macro __SMALLER_C_SCHAR__ = ``
; Bytes used: 74/5120
; Identifier table:
; Ident __floatsisf
; Ident __floatunsisf
; Ident __fixsfsi
; Ident __fixunssfsi
; Ident __addsf3
; Ident __subsf3
; Ident __negsf2
; Ident __mulsf3
; Ident __divsf3
; Ident __lesf2
; Ident __gesf2
; Ident intptr_t
; Ident uintptr_t
; Ident intmax_t
; Ident uintmax_t
; Ident int8_t
; Ident int_least8_t
; Ident int_fast8_t
; Ident uint8_t
; Ident uint_least8_t
; Ident uint_fast8_t
; Ident int16_t
; Ident int_least16_t
; Ident int_fast16_t
; Ident uint16_t
; Ident uint_least16_t
; Ident uint_fast16_t
; Ident int32_t
; Ident int_least32_t
; Ident int_fast32_t
; Ident uint32_t
; Ident uint_least32_t
; Ident uint_fast32_t
; Ident <something>
; Ident quot
; Ident rem
; Ident imaxdiv_t
; Ident FALSE
; Ident TRUE
; Ident bool_t
; Ident pointer_t
; Ident funcion_t
; Ident manejador_t
; Ident rti_t
; Ident isr_t
; Ident handler_t
; Ident retardarThread_t
; Ident ptrTVI_t
; Ident modoSO1_Bin
; Ident modoSO1_Exe
; Ident modoSO1_Bs
; Ident modoSO1_t
; Ident lo
; Ident hi
; Ident lh_t
; Ident offset
; Ident segment
; Ident address_t
; Ident ptr
; Ident adr
; Ident uPtrAdr_t
; Ident pid_t
; Ident tid_t
; Ident uid_t
; Ident gid_t
; Ident pindx_t
; Ident tindx_t
; Ident df_t
; Ident dfs_t
; Ident rindx_t
; Ident modoAp_t
; Ident DS
; Ident ES
; Ident EDI
; Ident ESI
; Ident EBP
; Ident ESP
; Ident EBX
; Ident EDX
; Ident ECX
; Ident EAX
; Ident IP
; Ident CS
; Ident Flags
; Ident tramaDWords_t
; Ident DI
; Ident rDI
; Ident SI
; Ident rSI
; Ident BP
; Ident rBP
; Ident SP
; Ident rSP
; Ident BX
; Ident rBX
; Ident DX
; Ident rDX
; Ident CX
; Ident rCX
; Ident AX
; Ident rAX
; Ident tramaWords_t
; Ident BL
; Ident BH
; Ident rB
; Ident DL
; Ident DH
; Ident rD
; Ident CL
; Ident CH
; Ident rC
; Ident AL
; Ident AH
; Ident rA
; Ident tramaBytes_t
; Ident td
; Ident tw
; Ident tb
; Ident trama_t
; Ident tam
; Ident sig
; Ident ant
; Ident aux
; Ident relleno
; Ident bloque_t
; Ident ptrBloque_t
; Ident cab
; Ident dobleEnlace_t
; Ident numElem
; Ident primero
; Ident cabecera
; Ident e
; Ident c2c_t
; Ident posicionC2c
; Ident i
; Ident c2c
; Ident eliminarC2c
; Ident apilarC2c
; Ident encolarC2c
; Ident desencolarC2c
; Ident inicializarC2c
; Ident compartida
; Ident ptrC2c_t
; Ident posicionPC2c
; Ident eliminarPC2c
; Ident ptrC2c
; Ident apilarPC2c
; Ident encolarPC2c
; Ident desencolarPC2c
; Ident inicializarPC2c
; Ident callBack_t
; Ident arg
; Ident num
; Ident in
; Ident out
; Ident max
; Ident callBack
; Ident descCcb_t
; Ident ccb_t
; Ident inicCcb
; Ident ccb
; Ident encolarCcb
; Ident cb
; Ident desencolarCcb
; Ident eliminarCcb
; Ident eliminarSegCcb
; Ident segmento
; Ident vaciarCcb
; Ident atenderCcb
; Ident libre
; Ident preparado
; Ident ejecutandose
; Ident bloqueado
; Ident estado_t
; Ident modoAp
; Ident dfs
; Ident pos
; Ident dfa_t
; Ident pid
; Ident noStatus
; Ident status
; Ident ppindx
; Ident hpindx
; Ident c2cHijos
; Ident c2cThreads
; Ident CSProc
; Ident tamCodigo
; Ident desplBSS
; Ident desplPila
; Ident tamFichero
; Ident programa
; Ident comando
; Ident nfa
; Ident tfa
; Ident uid
; Ident gid
; Ident descProceso_t
; Ident tid
; Ident estado
; Ident esperandoPor
; Ident trama
; Ident ptindx
; Ident htindx
; Ident pindx
; Ident SSThread
; Ident SP0
; Ident descThread_t
; Ident flibre
; Ident fRegular
; Ident fedBloques
; Ident fedCaracteres
; Ident tuberia
; Ident tipoFichero_t
; Ident tipo
; Ident nombre
; Ident rindx
; Ident menor
; Ident shareMode
; Ident contAp_L
; Ident contAp_E
; Ident descFichero_t
; Ident rLibre
; Ident rDCaracteres
; Ident rDBloques
; Ident rTuberia
; Ident rGP
; Ident rGM
; Ident rSF
; Ident rOtro
; Ident tipoRecurso_t
; Ident open_t
; Ident modo
; Ident release_t
; Ident read_t
; Ident dir
; Ident nbytes
; Ident aio_read_t
; Ident write_t
; Ident aio_write_t
; Ident lseek_t
; Ident whence
; Ident fcntl_t
; Ident cmd
; Ident ioctl_t
; Ident request
; Ident eliminar_t
; Ident tindx
; Ident c2cFichRec
; Ident numVI
; Ident nVInt
; Ident irq
; Ident isr
; Ident open
; Ident release
; Ident read
; Ident aio_read
; Ident write
; Ident aio_write
; Ident lseek
; Ident fcntl
; Ident ioctl
; Ident eliminar
; Ident descRecurso_t
; Ident SP0_So1
; Ident IMR
; Ident modoSO1
; Ident ptrDebugWord
; Ident info_t
; Ident signatura
; Ident bytesUltSector
; Ident sectores
; Ident numDirReub
; Ident numParCabecera
; Ident minAlloc
; Ident maxAlloc
; Ident SS0
; Ident checkSum
; Ident IP0
; Ident CS0
; Ident offTablaReub
; Ident numOverlay
; Ident cabecera_t
; Ident Libres
; Ident Ocupados
; Ident e2DescProceso
; Ident e2DescThread
; Ident e2DescFichero
; Ident e2DescRecurso
; Ident e2Hijos
; Ident e2Threads
; Ident e2Preparados
; Ident e2Urgentes
; Ident e2POrdenados
; Ident e2TDormidos
; Ident e2FichRec
; Ident e2PFR_t
; Ident DPLibres
; Ident DPOcupados
; Ident DTLibres
; Ident DTOcupados
; Ident TPreparados
; Ident TUrgentes
; Ident POrdenados
; Ident TDormidos
; Ident DFLibres
; Ident DFOcupados
; Ident DRLibres
; Ident DROcupados
; Ident numColasPFR
; Ident cPFR_t
; Ident sigThread_t
; Ident activarThread_t
; Ident buscarNuevoThreadActual_t
; Ident bloquearThreadActual_t
; Ident ptrIndProcesoActual
; Ident ptrIndThreadActual
; Ident ptrTramaThread
; Ident ptrActivarAlEpilogo
; Ident ptrDescProceso
; Ident tamDescProceso
; Ident ptrDescThread
; Ident tamDescThread
; Ident ptrDescFichero
; Ident ptrDescRecurso
; Ident ptrC2cPFR
; Ident ptrE2PFR
; Ident ptrNivelActivacionSO1H
; Ident ptrEnHalt
; Ident ptrHayTic
; Ident ptrCcbAlEpilogo
; Ident ptrSS_Thread
; Ident ptrSP_Thread
; Ident ptrSS_Kernel
; Ident ptrSP0_Kernel
; Ident SP0_SO1H
; Ident ptrContRodajas
; Ident ptrContTicsRodaja
; Ident ptrVIOrg
; Ident sigThread
; Ident activarThread
; Ident buscarNuevoThreadActual
; Ident bloquearThreadActual
; Ident ptrListaLibres
; Ident ptrTamBloqueMax
; Ident descSO1H_t
; Ident nombreDF_t
; Ident comandoDF_t
; Ident so1h_0_DF
; Ident datos_DF
; Ident so1h_k_DF
; Ident proceso_DF
; Ident dram_DF
; Ident tipoDF_t
; Ident start
; Ident otro
; Ident SS
; Ident entradaDF_t
; Ident dirInicial
; Ident dirCargaFichero
; Ident dirFinal
; Ident entradaDF
; Ident origen
; Ident destino
; Ident reubicacion_t
; Ident reubicacion
; Ident numER
; Ident inicProcesos_x
; Ident size_t
; Ident memset
; Ident memcpy
; Ident memmove
; Ident memchr
; Ident memcmp
; Ident strcpy
; Ident strncpy
; Ident strxfrm
; Ident strcat
; Ident strncat
; Ident strlen
; Ident strchr
; Ident strrchr
; Ident strstr
; Ident strspn
; Ident strcspn
; Ident strpbrk
; Ident strtok
; Ident strcmp
; Ident strncmp
; Ident strcoll
; Ident strerror
; Bytes used: 3810/16384
; Next label number: 151
; Compilation succeeded.
| 20.587918
| 179
| 0.635103
|
c565c2c82db3da618af0694c8ffb31e3046f58e8
| 16,855
|
asm
|
Assembly
|
Aurora/Aurora/x64/Debug/stream.asm
|
manaskamal/aurora-xeneva
|
fe277f7ac155a40465c70f1db3c27046e4d0f7b5
|
[
"BSD-2-Clause"
] | 8
|
2021-07-19T04:46:35.000Z
|
2022-03-12T17:56:00.000Z
|
Aurora/Aurora/x64/Debug/stream.asm
|
manaskamal/aurora-xeneva
|
fe277f7ac155a40465c70f1db3c27046e4d0f7b5
|
[
"BSD-2-Clause"
] | null | null | null |
Aurora/Aurora/x64/Debug/stream.asm
|
manaskamal/aurora-xeneva
|
fe277f7ac155a40465c70f1db3c27046e4d0f7b5
|
[
"BSD-2-Clause"
] | null | null | null |
; Listing generated by Microsoft (R) Optimizing Compiler Version 17.00.50727.1
include listing.inc
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
CONST SEGMENT
$SG3624 DB 'stdin', 00H
ORG $+2
$SG3625 DB '/dev/stdin', 00H
ORG $+1
$SG3628 DB 'stdout', 00H
ORG $+5
$SG3629 DB '/dev/stdout', 00H
$SG3632 DB 'stderr', 00H
ORG $+5
$SG3633 DB '/dev/stderr', 00H
CONST ENDS
PUBLIC ?allocate_stream@@YAPEAU_stream_@@XZ ; allocate_stream
PUBLIC ?stream_init@@YAXXZ ; stream_init
PUBLIC ?deallocate_stream@@YAXPEAU_stream_@@@Z ; deallocate_stream
PUBLIC ?stdout@@YAXPEAU_stream_@@PEAD@Z ; stdout
PUBLIC ?stdin@@YAXPEAU_stream_@@PEAD@Z ; stdin
PUBLIC ?stderr@@YAXPEAU_stream_@@PEAD@Z ; stderr
PUBLIC ?stdout_read@@YAXPEAU_vfs_node_@@PEAEI@Z ; stdout_read
PUBLIC ?stdout_write@@YAXPEAU_vfs_node_@@PEAEI@Z ; stdout_write
PUBLIC ?stderr_read@@YAXPEAU_vfs_node_@@PEAEI@Z ; stderr_read
PUBLIC ?stderr_write@@YAXPEAU_vfs_node_@@PEAEI@Z ; stderr_write
EXTRN ?strcpy@@YAPEADPEADPEBD@Z:PROC ; strcpy
EXTRN ?strlen@@YA_KPEBD@Z:PROC ; strlen
EXTRN ?memset@@YAXPEAXEI@Z:PROC ; memset
EXTRN memcpy:PROC
EXTRN ?vfs_mount@@YAXPEADPEAU_vfs_node_@@@Z:PROC ; vfs_mount
EXTRN ?pmmngr_alloc@@YAPEAXXZ:PROC ; pmmngr_alloc
EXTRN ?malloc@@YAPEAX_K@Z:PROC ; malloc
EXTRN ?free@@YAXPEAX@Z:PROC ; free
EXTRN ?get_current_thread@@YAPEAU_thread_@@XZ:PROC ; get_current_thread
EXTRN ?get_ttype@@YAPEAU_tele_type_@@H@Z:PROC ; get_ttype
pdata SEGMENT
$pdata$?allocate_stream@@YAPEAU_stream_@@XZ DD imagerel $LN3
DD imagerel $LN3+42
DD imagerel $unwind$?allocate_stream@@YAPEAU_stream_@@XZ
$pdata$?stream_init@@YAXXZ DD imagerel $LN3
DD imagerel $LN3+578
DD imagerel $unwind$?stream_init@@YAXXZ
$pdata$?deallocate_stream@@YAXPEAU_stream_@@@Z DD imagerel $LN3
DD imagerel $LN3+24
DD imagerel $unwind$?deallocate_stream@@YAXPEAU_stream_@@@Z
$pdata$?stdout@@YAXPEAU_stream_@@PEAD@Z DD imagerel $LN3
DD imagerel $LN3+51
DD imagerel $unwind$?stdout@@YAXPEAU_stream_@@PEAD@Z
$pdata$?stdin@@YAXPEAU_stream_@@PEAD@Z DD imagerel $LN3
DD imagerel $LN3+47
DD imagerel $unwind$?stdin@@YAXPEAU_stream_@@PEAD@Z
$pdata$?stderr@@YAXPEAU_stream_@@PEAD@Z DD imagerel $LN3
DD imagerel $LN3+47
DD imagerel $unwind$?stderr@@YAXPEAU_stream_@@PEAD@Z
$pdata$?stdout_read@@YAXPEAU_vfs_node_@@PEAEI@Z DD imagerel $LN3
DD imagerel $LN3+69
DD imagerel $unwind$?stdout_read@@YAXPEAU_vfs_node_@@PEAEI@Z
$pdata$?stdout_write@@YAXPEAU_vfs_node_@@PEAEI@Z DD imagerel $LN5
DD imagerel $LN5+138
DD imagerel $unwind$?stdout_write@@YAXPEAU_vfs_node_@@PEAEI@Z
$pdata$?stderr_read@@YAXPEAU_vfs_node_@@PEAEI@Z DD imagerel $LN3
DD imagerel $LN3+69
DD imagerel $unwind$?stderr_read@@YAXPEAU_vfs_node_@@PEAEI@Z
$pdata$?stderr_write@@YAXPEAU_vfs_node_@@PEAEI@Z DD imagerel $LN5
DD imagerel $LN5+138
DD imagerel $unwind$?stderr_write@@YAXPEAU_vfs_node_@@PEAEI@Z
pdata ENDS
xdata SEGMENT
$unwind$?allocate_stream@@YAPEAU_stream_@@XZ DD 010401H
DD 06204H
$unwind$?stream_init@@YAXXZ DD 010401H
DD 08204H
$unwind$?deallocate_stream@@YAXPEAU_stream_@@@Z DD 010901H
DD 04209H
$unwind$?stdout@@YAXPEAU_stream_@@PEAD@Z DD 010e01H
DD 0420eH
$unwind$?stdin@@YAXPEAU_stream_@@PEAD@Z DD 010e01H
DD 0420eH
$unwind$?stderr@@YAXPEAU_stream_@@PEAD@Z DD 010e01H
DD 0420eH
$unwind$?stdout_read@@YAXPEAU_vfs_node_@@PEAEI@Z DD 011301H
DD 06213H
$unwind$?stdout_write@@YAXPEAU_vfs_node_@@PEAEI@Z DD 011301H
DD 06213H
$unwind$?stderr_read@@YAXPEAU_vfs_node_@@PEAEI@Z DD 011301H
DD 06213H
$unwind$?stderr_write@@YAXPEAU_vfs_node_@@PEAEI@Z DD 011301H
DD 06213H
xdata ENDS
; Function compile flags: /Odtpy
; File e:\xeneva project\xeneva\aurora\aurora\stream.cpp
_TEXT SEGMENT
p$ = 32
t$1 = 40
file$ = 64
buffer$ = 72
length$ = 80
?stderr_write@@YAXPEAU_vfs_node_@@PEAEI@Z PROC ; stderr_write
; 68 : void stderr_write (vfs_node_t *file, uint8_t* buffer, uint32_t length) {
$LN5:
mov DWORD PTR [rsp+24], r8d
mov QWORD PTR [rsp+16], rdx
mov QWORD PTR [rsp+8], rcx
sub rsp, 56 ; 00000038H
; 69 : thread_t *p = get_current_thread();
call ?get_current_thread@@YAPEAU_thread_@@XZ ; get_current_thread
mov QWORD PTR p$[rsp], rax
; 70 : memcpy (p->stream->err, buffer, 32);
mov rax, QWORD PTR p$[rsp]
mov rax, QWORD PTR [rax+760]
add rax, 64 ; 00000040H
mov r8d, 32 ; 00000020H
mov rdx, QWORD PTR buffer$[rsp]
mov rcx, rax
call memcpy
; 71 : if (p->ttype) {
mov rax, QWORD PTR p$[rsp]
cmp QWORD PTR [rax+240], 0
je SHORT $LN2@stderr_wri
; 72 : ttype_t *t = get_ttype(p->ttype);
mov rax, QWORD PTR p$[rsp]
mov ecx, DWORD PTR [rax+240]
call ?get_ttype@@YAPEAU_tele_type_@@H@Z ; get_ttype
mov QWORD PTR t$1[rsp], rax
; 73 : if (t) {
cmp QWORD PTR t$1[rsp], 0
je SHORT $LN1@stderr_wri
; 74 : memcpy (t->in_buffer,buffer, 32);
mov r8d, 32 ; 00000020H
mov rdx, QWORD PTR buffer$[rsp]
mov rax, QWORD PTR t$1[rsp]
mov rcx, QWORD PTR [rax+72]
call memcpy
$LN1@stderr_wri:
$LN2@stderr_wri:
; 75 : }
; 76 : }
; 77 : }
add rsp, 56 ; 00000038H
ret 0
?stderr_write@@YAXPEAU_vfs_node_@@PEAEI@Z ENDP ; stderr_write
_TEXT ENDS
; Function compile flags: /Odtpy
; File e:\xeneva project\xeneva\aurora\aurora\stream.cpp
_TEXT SEGMENT
p$ = 32
file$ = 64
buffer$ = 72
length$ = 80
?stderr_read@@YAXPEAU_vfs_node_@@PEAEI@Z PROC ; stderr_read
; 63 : void stderr_read (vfs_node_t *file, uint8_t* buffer,uint32_t length) {
$LN3:
mov DWORD PTR [rsp+24], r8d
mov QWORD PTR [rsp+16], rdx
mov QWORD PTR [rsp+8], rcx
sub rsp, 56 ; 00000038H
; 64 : thread_t *p = get_current_thread();
call ?get_current_thread@@YAPEAU_thread_@@XZ ; get_current_thread
mov QWORD PTR p$[rsp], rax
; 65 : memcpy (buffer, p->stream->err, 32);
mov rax, QWORD PTR p$[rsp]
mov rax, QWORD PTR [rax+760]
add rax, 64 ; 00000040H
mov r8d, 32 ; 00000020H
mov rdx, rax
mov rcx, QWORD PTR buffer$[rsp]
call memcpy
; 66 : }
add rsp, 56 ; 00000038H
ret 0
?stderr_read@@YAXPEAU_vfs_node_@@PEAEI@Z ENDP ; stderr_read
_TEXT ENDS
; Function compile flags: /Odtpy
; File e:\xeneva project\xeneva\aurora\aurora\stream.cpp
_TEXT SEGMENT
p$ = 32
t$1 = 40
file$ = 64
buffer$ = 72
length$ = 80
?stdout_write@@YAXPEAU_vfs_node_@@PEAEI@Z PROC ; stdout_write
; 53 : void stdout_write (vfs_node_t *file, uint8_t* buffer, uint32_t length) {
$LN5:
mov DWORD PTR [rsp+24], r8d
mov QWORD PTR [rsp+16], rdx
mov QWORD PTR [rsp+8], rcx
sub rsp, 56 ; 00000038H
; 54 : thread_t *p = get_current_thread();
call ?get_current_thread@@YAPEAU_thread_@@XZ ; get_current_thread
mov QWORD PTR p$[rsp], rax
; 55 : memcpy(p->stream->out,buffer, 32);
mov rax, QWORD PTR p$[rsp]
mov rax, QWORD PTR [rax+760]
add rax, 32 ; 00000020H
mov r8d, 32 ; 00000020H
mov rdx, QWORD PTR buffer$[rsp]
mov rcx, rax
call memcpy
; 56 : if (p->ttype) {
mov rax, QWORD PTR p$[rsp]
cmp QWORD PTR [rax+240], 0
je SHORT $LN2@stdout_wri
; 57 : ttype_t *t = get_ttype(p->ttype);
mov rax, QWORD PTR p$[rsp]
mov ecx, DWORD PTR [rax+240]
call ?get_ttype@@YAPEAU_tele_type_@@H@Z ; get_ttype
mov QWORD PTR t$1[rsp], rax
; 58 : if (t)
cmp QWORD PTR t$1[rsp], 0
je SHORT $LN1@stdout_wri
; 59 : memcpy (t->in_buffer,buffer, 32);
mov r8d, 32 ; 00000020H
mov rdx, QWORD PTR buffer$[rsp]
mov rax, QWORD PTR t$1[rsp]
mov rcx, QWORD PTR [rax+72]
call memcpy
$LN1@stdout_wri:
$LN2@stdout_wri:
; 60 : }
; 61 : }
add rsp, 56 ; 00000038H
ret 0
?stdout_write@@YAXPEAU_vfs_node_@@PEAEI@Z ENDP ; stdout_write
_TEXT ENDS
; Function compile flags: /Odtpy
; File e:\xeneva project\xeneva\aurora\aurora\stream.cpp
_TEXT SEGMENT
p$ = 32
file$ = 64
buffer$ = 72
length$ = 80
?stdout_read@@YAXPEAU_vfs_node_@@PEAEI@Z PROC ; stdout_read
; 48 : void stdout_read (vfs_node_t *file, uint8_t* buffer,uint32_t length) {
$LN3:
mov DWORD PTR [rsp+24], r8d
mov QWORD PTR [rsp+16], rdx
mov QWORD PTR [rsp+8], rcx
sub rsp, 56 ; 00000038H
; 49 : thread_t *p = get_current_thread();
call ?get_current_thread@@YAPEAU_thread_@@XZ ; get_current_thread
mov QWORD PTR p$[rsp], rax
; 50 : memcpy (buffer, p->stream->out,32);
mov rax, QWORD PTR p$[rsp]
mov rax, QWORD PTR [rax+760]
add rax, 32 ; 00000020H
mov r8d, 32 ; 00000020H
mov rdx, rax
mov rcx, QWORD PTR buffer$[rsp]
call memcpy
; 51 : }
add rsp, 56 ; 00000038H
ret 0
?stdout_read@@YAXPEAU_vfs_node_@@PEAEI@Z ENDP ; stdout_read
_TEXT ENDS
; Function compile flags: /Odtpy
; File e:\xeneva project\xeneva\aurora\aurora\stream.cpp
_TEXT SEGMENT
st$ = 48
err$ = 56
?stderr@@YAXPEAU_stream_@@PEAD@Z PROC ; stderr
; 43 : void stderr (stream_t* st, char* err) {
$LN3:
mov QWORD PTR [rsp+16], rdx
mov QWORD PTR [rsp+8], rcx
sub rsp, 40 ; 00000028H
; 44 : memcpy (st->err, err,sizeof(err));
mov rax, QWORD PTR st$[rsp]
add rax, 64 ; 00000040H
mov r8d, 8
mov rdx, QWORD PTR err$[rsp]
mov rcx, rax
call memcpy
; 45 : }
add rsp, 40 ; 00000028H
ret 0
?stderr@@YAXPEAU_stream_@@PEAD@Z ENDP ; stderr
_TEXT ENDS
; Function compile flags: /Odtpy
; File e:\xeneva project\xeneva\aurora\aurora\stream.cpp
_TEXT SEGMENT
st$ = 48
key$ = 56
?stdin@@YAXPEAU_stream_@@PEAD@Z PROC ; stdin
; 38 : void stdin (stream_t* st, char* key) {
$LN3:
mov QWORD PTR [rsp+16], rdx
mov QWORD PTR [rsp+8], rcx
sub rsp, 40 ; 00000028H
; 39 : memcpy (st->in, key, strlen(key));
mov rcx, QWORD PTR key$[rsp]
call ?strlen@@YA_KPEBD@Z ; strlen
mov rcx, QWORD PTR st$[rsp]
mov r8d, eax
mov rdx, QWORD PTR key$[rsp]
call memcpy
; 40 : }
add rsp, 40 ; 00000028H
ret 0
?stdin@@YAXPEAU_stream_@@PEAD@Z ENDP ; stdin
_TEXT ENDS
; Function compile flags: /Odtpy
; File e:\xeneva project\xeneva\aurora\aurora\stream.cpp
_TEXT SEGMENT
st$ = 48
buff$ = 56
?stdout@@YAXPEAU_stream_@@PEAD@Z PROC ; stdout
; 33 : void stdout (stream_t *st, char* buff) {
$LN3:
mov QWORD PTR [rsp+16], rdx
mov QWORD PTR [rsp+8], rcx
sub rsp, 40 ; 00000028H
; 34 : memcpy (st->out, buff, strlen(buff));
mov rcx, QWORD PTR buff$[rsp]
call ?strlen@@YA_KPEBD@Z ; strlen
mov rcx, QWORD PTR st$[rsp]
add rcx, 32 ; 00000020H
mov r8d, eax
mov rdx, QWORD PTR buff$[rsp]
call memcpy
; 35 : }
add rsp, 40 ; 00000028H
ret 0
?stdout@@YAXPEAU_stream_@@PEAD@Z ENDP ; stdout
_TEXT ENDS
; Function compile flags: /Odtpy
; File e:\xeneva project\xeneva\aurora\aurora\stream.cpp
_TEXT SEGMENT
st$ = 48
?deallocate_stream@@YAXPEAU_stream_@@@Z PROC ; deallocate_stream
; 27 : void deallocate_stream (stream_t *st) {
$LN3:
mov QWORD PTR [rsp+8], rcx
sub rsp, 40 ; 00000028H
; 28 : free(st);
mov rcx, QWORD PTR st$[rsp]
call ?free@@YAXPEAX@Z ; free
; 29 : }
add rsp, 40 ; 00000028H
ret 0
?deallocate_stream@@YAXPEAU_stream_@@@Z ENDP ; deallocate_stream
_TEXT ENDS
; Function compile flags: /Odtpy
; File e:\xeneva project\xeneva\aurora\aurora\stream.cpp
_TEXT SEGMENT
stdin$ = 32
node$ = 40
stderr$ = 48
?stream_init@@YAXXZ PROC ; stream_init
; 80 : void stream_init () {
$LN3:
sub rsp, 72 ; 00000048H
; 81 :
; 82 : ///! Standard Input
; 83 : ///! node
; 84 : vfs_node_t *stdin = (vfs_node_t*)malloc(sizeof(vfs_node_t));
mov ecx, 104 ; 00000068H
call ?malloc@@YAPEAX_K@Z ; malloc
mov QWORD PTR stdin$[rsp], rax
; 85 : strcpy(stdin->filename, "stdin");
mov rax, QWORD PTR stdin$[rsp]
lea rdx, OFFSET FLAT:$SG3624
mov rcx, rax
call ?strcpy@@YAPEADPEADPEBD@Z ; strcpy
; 86 : stdin->size = 0;
mov rax, QWORD PTR stdin$[rsp]
mov DWORD PTR [rax+32], 0
; 87 : stdin->eof = 0;
mov rax, QWORD PTR stdin$[rsp]
mov DWORD PTR [rax+36], 0
; 88 : stdin->pos = 0;
mov rax, QWORD PTR stdin$[rsp]
mov DWORD PTR [rax+40], 0
; 89 : stdin->current = 0;
mov rax, QWORD PTR stdin$[rsp]
mov DWORD PTR [rax+44], 0
; 90 : stdin->flags = FS_FLAG_GENERAL;
mov rax, QWORD PTR stdin$[rsp]
mov DWORD PTR [rax+48], 2
; 91 : stdin->status = 0;
mov rax, QWORD PTR stdin$[rsp]
mov DWORD PTR [rax+52], 0
; 92 : stdin->open = 0;
mov rax, QWORD PTR stdin$[rsp]
mov QWORD PTR [rax+64], 0
; 93 : stdin->read = 0;
mov rax, QWORD PTR stdin$[rsp]
mov QWORD PTR [rax+72], 0
; 94 : stdin->write = 0;
mov rax, QWORD PTR stdin$[rsp]
mov QWORD PTR [rax+80], 0
; 95 : stdin->read_blk = 0;
mov rax, QWORD PTR stdin$[rsp]
mov QWORD PTR [rax+88], 0
; 96 : stdin->ioquery = 0;
mov rax, QWORD PTR stdin$[rsp]
mov QWORD PTR [rax+96], 0
; 97 : vfs_mount ("/dev/stdin", stdin);
mov rdx, QWORD PTR stdin$[rsp]
lea rcx, OFFSET FLAT:$SG3625
call ?vfs_mount@@YAXPEADPEAU_vfs_node_@@@Z ; vfs_mount
; 98 :
; 99 : ///! Standard output
; 100 : ///! node
; 101 : vfs_node_t *node = (vfs_node_t*)pmmngr_alloc();//malloc(sizeof(vfs_node_t));
call ?pmmngr_alloc@@YAPEAXXZ ; pmmngr_alloc
mov QWORD PTR node$[rsp], rax
; 102 : strcpy(node->filename, "stdout");
mov rax, QWORD PTR node$[rsp]
lea rdx, OFFSET FLAT:$SG3628
mov rcx, rax
call ?strcpy@@YAPEADPEADPEBD@Z ; strcpy
; 103 : node->size = 0;
mov rax, QWORD PTR node$[rsp]
mov DWORD PTR [rax+32], 0
; 104 : node->eof = 0;
mov rax, QWORD PTR node$[rsp]
mov DWORD PTR [rax+36], 0
; 105 : node->pos = 0;
mov rax, QWORD PTR node$[rsp]
mov DWORD PTR [rax+40], 0
; 106 : node->current = 0;
mov rax, QWORD PTR node$[rsp]
mov DWORD PTR [rax+44], 0
; 107 : node->flags = FS_FLAG_GENERAL;
mov rax, QWORD PTR node$[rsp]
mov DWORD PTR [rax+48], 2
; 108 : node->status = 0;
mov rax, QWORD PTR node$[rsp]
mov DWORD PTR [rax+52], 0
; 109 : node->open = 0;
mov rax, QWORD PTR node$[rsp]
mov QWORD PTR [rax+64], 0
; 110 : node->read = stdout_read;
mov rax, QWORD PTR node$[rsp]
lea rcx, OFFSET FLAT:?stdout_read@@YAXPEAU_vfs_node_@@PEAEI@Z ; stdout_read
mov QWORD PTR [rax+72], rcx
; 111 : node->write = stdout_write;
mov rax, QWORD PTR node$[rsp]
lea rcx, OFFSET FLAT:?stdout_write@@YAXPEAU_vfs_node_@@PEAEI@Z ; stdout_write
mov QWORD PTR [rax+80], rcx
; 112 : node->read_blk = 0;
mov rax, QWORD PTR node$[rsp]
mov QWORD PTR [rax+88], 0
; 113 : node->ioquery = 0;
mov rax, QWORD PTR node$[rsp]
mov QWORD PTR [rax+96], 0
; 114 : vfs_mount ("/dev/stdout", node);
mov rdx, QWORD PTR node$[rsp]
lea rcx, OFFSET FLAT:$SG3629
call ?vfs_mount@@YAXPEADPEAU_vfs_node_@@@Z ; vfs_mount
; 115 :
; 116 : ///! Standard Error
; 117 : ///! node
; 118 : vfs_node_t *stderr = (vfs_node_t*)pmmngr_alloc(); //malloc(sizeof(vfs_node_t));
call ?pmmngr_alloc@@YAPEAXXZ ; pmmngr_alloc
mov QWORD PTR stderr$[rsp], rax
; 119 : strcpy(stderr->filename, "stderr");
mov rax, QWORD PTR stderr$[rsp]
lea rdx, OFFSET FLAT:$SG3632
mov rcx, rax
call ?strcpy@@YAPEADPEADPEBD@Z ; strcpy
; 120 : stderr->size = 0;
mov rax, QWORD PTR stderr$[rsp]
mov DWORD PTR [rax+32], 0
; 121 : stderr->eof = 0;
mov rax, QWORD PTR stderr$[rsp]
mov DWORD PTR [rax+36], 0
; 122 : stderr->pos = 0;
mov rax, QWORD PTR stderr$[rsp]
mov DWORD PTR [rax+40], 0
; 123 : stderr->current = 0;
mov rax, QWORD PTR stderr$[rsp]
mov DWORD PTR [rax+44], 0
; 124 : stderr->flags = FS_FLAG_GENERAL;
mov rax, QWORD PTR stderr$[rsp]
mov DWORD PTR [rax+48], 2
; 125 : stderr->status = 0;
mov rax, QWORD PTR stderr$[rsp]
mov DWORD PTR [rax+52], 0
; 126 : stderr->open = 0;
mov rax, QWORD PTR stderr$[rsp]
mov QWORD PTR [rax+64], 0
; 127 : stderr->read = stderr_read;
mov rax, QWORD PTR stderr$[rsp]
lea rcx, OFFSET FLAT:?stderr_read@@YAXPEAU_vfs_node_@@PEAEI@Z ; stderr_read
mov QWORD PTR [rax+72], rcx
; 128 : stderr->write = stderr_write;
mov rax, QWORD PTR stderr$[rsp]
lea rcx, OFFSET FLAT:?stderr_write@@YAXPEAU_vfs_node_@@PEAEI@Z ; stderr_write
mov QWORD PTR [rax+80], rcx
; 129 : stderr->read_blk = 0;
mov rax, QWORD PTR stderr$[rsp]
mov QWORD PTR [rax+88], 0
; 130 : stderr->ioquery = 0;
mov rax, QWORD PTR stderr$[rsp]
mov QWORD PTR [rax+96], 0
; 131 : vfs_mount ("/dev/stderr", stderr);
mov rdx, QWORD PTR stderr$[rsp]
lea rcx, OFFSET FLAT:$SG3633
call ?vfs_mount@@YAXPEADPEAU_vfs_node_@@@Z ; vfs_mount
; 132 : }
add rsp, 72 ; 00000048H
ret 0
?stream_init@@YAXXZ ENDP ; stream_init
_TEXT ENDS
; Function compile flags: /Odtpy
; File e:\xeneva project\xeneva\aurora\aurora\stream.cpp
_TEXT SEGMENT
st$ = 32
?allocate_stream@@YAPEAU_stream_@@XZ PROC ; allocate_stream
; 20 : stream_t *allocate_stream () {
$LN3:
sub rsp, 56 ; 00000038H
; 21 : stream_t *st = (stream_t*)pmmngr_alloc(); //malloc (sizeof(stream_t));
call ?pmmngr_alloc@@YAPEAXXZ ; pmmngr_alloc
mov QWORD PTR st$[rsp], rax
; 22 : memset (st, 0, sizeof(stream_t));
mov r8d, 96 ; 00000060H
xor edx, edx
mov rcx, QWORD PTR st$[rsp]
call ?memset@@YAXPEAXEI@Z ; memset
; 23 : return st;
mov rax, QWORD PTR st$[rsp]
; 24 : }
add rsp, 56 ; 00000038H
ret 0
?allocate_stream@@YAPEAU_stream_@@XZ ENDP ; allocate_stream
_TEXT ENDS
END
| 23.941761
| 89
| 0.67873
|
494f7e798fb8821a5e4f5d965147aaeb64919429
| 421
|
asm
|
Assembly
|
programs/oeis/062/A062777.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/062/A062777.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/062/A062777.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A062777: 2^n - mu(n).
; 1,5,9,16,33,63,129,256,512,1023,2049,4096,8193,16383,32767,65536,131073,262144,524289,1048576,2097151,4194303,8388609,16777216,33554432,67108863,134217728,268435456,536870913,1073741825,2147483649
add $0,1
mov $1,2
pow $1,$0
sub $0,1
seq $0,8683 ; Möbius (or Moebius) function mu(n). mu(1) = 1; mu(n) = (-1)^k if n is the product of k different primes; otherwise mu(n) = 0.
sub $1,$0
mov $0,$1
| 38.272727
| 198
| 0.705463
|
a5a8a5910b14210061085271a405eb81f624374c
| 5,330
|
asm
|
Assembly
|
autovectorization-tests/results/msvc19.28.29333-avx512/transform_abs.asm
|
clayne/toys
|
ec06411e2d3b920403607888d4a573e41390ee5b
|
[
"BSD-2-Clause"
] | null | null | null |
autovectorization-tests/results/msvc19.28.29333-avx512/transform_abs.asm
|
clayne/toys
|
ec06411e2d3b920403607888d4a573e41390ee5b
|
[
"BSD-2-Clause"
] | null | null | null |
autovectorization-tests/results/msvc19.28.29333-avx512/transform_abs.asm
|
clayne/toys
|
ec06411e2d3b920403607888d4a573e41390ee5b
|
[
"BSD-2-Clause"
] | null | null | null |
_x$ = 8 ; size = 1
int <lambda_aef477b5112c5bc789d750d6e9e25197>::operator()(signed char)const PROC ; <lambda_aef477b5112c5bc789d750d6e9e25197>::operator(), COMDAT
movsx eax, BYTE PTR _x$[esp-4]
cdq
xor eax, edx
sub eax, edx
ret 4
int <lambda_aef477b5112c5bc789d750d6e9e25197>::operator()(signed char)const ENDP ; <lambda_aef477b5112c5bc789d750d6e9e25197>::operator()
_x$ = 8 ; size = 4
int <lambda_21a8e6427fe49c1429ea01155035878e>::operator()(int)const PROC ; <lambda_21a8e6427fe49c1429ea01155035878e>::operator(), COMDAT
mov eax, DWORD PTR _x$[esp-4]
cdq
xor eax, edx
sub eax, edx
ret 4
int <lambda_21a8e6427fe49c1429ea01155035878e>::operator()(int)const ENDP ; <lambda_21a8e6427fe49c1429ea01155035878e>::operator()
_v$ = 8 ; size = 4
void transform_abs_epi32(std::vector<int,std::allocator<int> > &) PROC ; transform_abs_epi32, COMDAT
mov eax, DWORD PTR _v$[esp-4]
push ebx
push esi
push edi
mov ebx, DWORD PTR [eax+4]
xor edi, edi
mov ecx, DWORD PTR [eax]
mov edx, ebx
sub edx, ecx
xor eax, eax
add edx, 3
mov esi, ecx
shr edx, 2
cmp ecx, ebx
cmova edx, eax
test edx, edx
je SHORT $LN33@transform_
cmp edx, 64 ; 00000040H
jb SHORT $LN33@transform_
lea eax, DWORD PTR [ecx-4]
lea eax, DWORD PTR [eax+edx*4]
cmp ecx, eax
jbe SHORT $LN33@transform_
and edx, -64 ; ffffffc0H
npad 9
$LL24@transform_:
vpabsd zmm0, ZMMWORD PTR [ecx]
vmovdqu32 ZMMWORD PTR [esi], zmm0
vpabsd zmm0, ZMMWORD PTR [ecx+64]
vmovdqu32 ZMMWORD PTR [esi+64], zmm0
vpabsd zmm0, ZMMWORD PTR [ecx+128]
vmovdqu32 ZMMWORD PTR [esi+128], zmm0
vpabsd zmm0, ZMMWORD PTR [ecx+192]
vmovdqu32 ZMMWORD PTR [esi+192], zmm0
add edi, 64 ; 00000040H
add esi, 256 ; 00000100H
add ecx, 256 ; 00000100H
cmp edi, edx
jne SHORT $LL24@transform_
$LN33@transform_:
cmp ecx, ebx
je SHORT $LN23@transform_
sub esi, ecx
npad 1
$LL32@transform_:
mov eax, DWORD PTR [ecx]
cdq
xor eax, edx
sub eax, edx
mov DWORD PTR [esi+ecx], eax
add ecx, 4
cmp ecx, ebx
jne SHORT $LL32@transform_
$LN23@transform_:
pop edi
pop esi
pop ebx
vzeroupper
ret 0
void transform_abs_epi32(std::vector<int,std::allocator<int> > &) ENDP ; transform_abs_epi32
_v$ = 8 ; size = 4
void transform_abs_epi8(std::vector<signed char,std::allocator<signed char> > &) PROC ; transform_abs_epi8, COMDAT
mov eax, DWORD PTR _v$[esp-4]
push ebx
push esi
push edi
mov edi, DWORD PTR [eax+4]
xor ebx, ebx
mov ecx, DWORD PTR [eax]
mov edx, edi
sub edx, ecx
xor eax, eax
cmp ecx, edi
mov esi, ecx
cmova edx, eax
test edx, edx
je SHORT $LN33@transform_
cmp edx, 64 ; 00000040H
jb SHORT $LN33@transform_
lea eax, DWORD PTR [ecx-1]
add eax, edx
cmp ecx, eax
jbe SHORT $LN33@transform_
and edx, -64 ; ffffffc0H
$LL24@transform_:
vpmovsxbd zmm0, XMMWORD PTR [ecx]
vpabsd zmm0, zmm0
vpmovdb xmm0, zmm0
vmovdqu XMMWORD PTR [esi], xmm0
vpmovsxbd zmm0, XMMWORD PTR [ecx+16]
vpabsd zmm0, zmm0
vpmovdb xmm0, zmm0
vmovdqu XMMWORD PTR [esi+16], xmm0
vpmovsxbd zmm0, XMMWORD PTR [ecx+32]
vpabsd zmm0, zmm0
vpmovdb xmm0, zmm0
vmovdqu XMMWORD PTR [esi+32], xmm0
vpmovsxbd zmm0, XMMWORD PTR [ecx+48]
vpabsd zmm0, zmm0
vpmovdb xmm0, zmm0
vmovdqu XMMWORD PTR [esi+48], xmm0
add ebx, 64 ; 00000040H
add esi, 64 ; 00000040H
add ecx, 64 ; 00000040H
cmp ebx, edx
jne SHORT $LL24@transform_
$LN33@transform_:
cmp ecx, edi
je SHORT $LN23@transform_
sub esi, ecx
$LL32@transform_:
movsx eax, BYTE PTR [ecx]
cdq
xor eax, edx
sub eax, edx
mov BYTE PTR [esi+ecx], al
inc ecx
cmp ecx, edi
jne SHORT $LL32@transform_
$LN23@transform_:
pop edi
pop esi
pop ebx
vzeroupper
ret 0
void transform_abs_epi8(std::vector<signed char,std::allocator<signed char> > &) ENDP ; transform_abs_epi8
| 36.013514
| 145
| 0.50075
|
8aec238bd1eae0b425f8deaa8012f14cb347f849
| 753
|
asm
|
Assembly
|
oeis/118/A118456.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/118/A118456.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/118/A118456.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A118456: a(n) = Product_{k=1..n} P(k), where P(k) is the smallest prime >= k.
; Submitted by Christian Krause
; 2,4,12,60,300,2100,14700,161700,1778700,19565700,215222700,2797895100,36372636300,618334817100,10511691890700,178698762141900,3037878956412300,57719700171833700,1096674303264840300,25223508975091326900,580140706427100518700,13343236247823311930100,306894433699936174392300,8899938577298149057376700,258098218741646322663924300,7484848343507743357253804700,217060601961724557360360336300,6294757456890012163450449752700,182547966249810352740063042828300,5658986953744120934941954327677300
mov $1,1
lpb $0
mov $2,$0
sub $0,1
seq $2,151800 ; Least prime > n (version 2 of the "next prime" function).
mul $1,$2
lpe
mov $0,$1
mul $0,2
| 53.785714
| 489
| 0.823373
|
c2dc6054ea99699cbb0b5b5c4bc41b578443e826
| 470
|
asm
|
Assembly
|
programs/oeis/171/A171983.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/171/A171983.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/171/A171983.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A171983: Beatty sequence for sqrt(13).
; 3,7,10,14,18,21,25,28,32,36,39,43,46,50,54,57,61,64,68,72,75,79,82,86,90,93,97,100,104,108,111,115,118,122,126,129,133,137,140,144,147,151,155,158,162,165,169,173,176,180,183,187,191,194,198,201,205,209,212,216,219,223,227,230,234,237,241,245,248,252,255,259,263,266,270,274,277,281,284,288,292,295,299,302,306,310,313,317,320,324,328,331,335,338,342,346,349,353,356,360
add $0,1
seq $0,198270 ; Ceiling(n*sqrt(13)).
sub $0,1
| 67.142857
| 372
| 0.712766
|
f7738dae2ff6d277cee4eebfe85cddc58dd3d119
| 1,478
|
asm
|
Assembly
|
programs/oeis/062/A062046.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/062/A062046.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/062/A062046.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A062046: Sum of even numbers between consecutive primes.
; 0,4,6,18,12,30,18,42,78,30,102,78,42,90,150,168,60,192,138,72,228,162,258,372,198,102,210,108,222,840,258,402,138,720,150,462,480,330,510,528,180,930,192,390,198,1230,1302,450,228,462,708,240,1230,762,780,798,270,822,558,282,1440,2100,618,312,630,2268,1002,1710,348,702,1068,1452,1110,1128,762,1158,1572,798,1620,2070,420,2130,432,1308,882,1338,1812,918,462,930,2838,1932,978,1980,1002,1518,3090,522,4788,1632,2760,1680,1698,570,1722,2910,1770,1788,600,1812,1830,1230,618,3750,3180,642,1290,1950,1968,660,4002,1350,2040,2748,3480,2820,3570,2892,2190,2208,1482,2988,2262,1518,3060,1542,5460,3960,4818,810,4080,822,1650,828,4170,5922,1710,858,1722,6090,1758,882,1770,8970,1818,3660,4620,3732,1878,2832,2850,6720,1938,2922,2940,3948,2982,6018,2022,3048,1020,5130,1032,3108,5220,1050,5280,1062,3198,9702,2178,1092,2190,3300,3318,4452,3360,3378,12540,1152,5790,4668,5880,3552,3570,4788,7242,2430,3660,3678,1230,3702,7458,6270,11412,1278,2562,3858,1290,3882,2598,1302,2610,7878,1320,3972,22848,4092,4110,5508,12510,7020,9912,2850,1428,2862,4308,5772,2898,1452,4368,8790,7380,1482,2970,1488,2982,4488,9030,9102,6108,9222,4638,3102,4668,6252,3138,6300,3162,11130
mov $3,2
mov $5,$0
lpb $3
mov $0,$5
sub $3,1
add $0,$3
sub $0,1
cal $0,74367 ; (p^2-5)/4 for odd primes p.
mov $2,$3
mov $4,$0
div $4,2
mul $4,4
lpb $2
mov $1,$4
sub $2,1
lpe
lpe
lpb $5
sub $1,$4
mov $5,0
lpe
div $1,4
mul $1,2
| 54.740741
| 1,156
| 0.730041
|
8406f73d76bf0187f264bfda4faf1fb174ca9420
| 667
|
asm
|
Assembly
|
oeis/089/A089253.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/089/A089253.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/089/A089253.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A089253: Numbers n such that 2n - 5 is a prime.
; Submitted by Jon Maiga
; 4,5,6,8,9,11,12,14,17,18,21,23,24,26,29,32,33,36,38,39,42,44,47,51,53,54,56,57,59,66,68,71,72,77,78,81,84,86,89,92,93,98,99,101,102,108,114,116,117,119,122,123,128,131,134,137,138,141,143,144,149,156,158,159,161,168,171,176,177,179,182,186,189,192,194,197,201,203,207,212,213,218,219,222,224,227,231,233,234,236,242,246,248,252,254,257,263,264,273,276
mov $1,2
mov $2,$0
pow $2,2
lpb $2
mov $3,$1
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,2
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
sub $2,1
lpe
mov $0,$1
div $0,2
add $0,3
| 30.318182
| 353
| 0.655172
|
49dd8e14de6e54b484742cdad68e21b6a53bfa2a
| 57,267
|
asm
|
Assembly
|
bintree.asm
|
JonathonReinhart/h2incn
|
ed62c11617fce8b2e62857a0a92a385036c28c38
|
[
"BSD-2-Clause"
] | 1
|
2021-09-11T15:29:42.000Z
|
2021-09-11T15:29:42.000Z
|
bintree.asm
|
JonathonReinhart/h2incn
|
ed62c11617fce8b2e62857a0a92a385036c28c38
|
[
"BSD-2-Clause"
] | null | null | null |
bintree.asm
|
JonathonReinhart/h2incn
|
ed62c11617fce8b2e62857a0a92a385036c28c38
|
[
"BSD-2-Clause"
] | null | null | null |
;
; bintree.asm : Binary Tree implementation
; Author : Rob Neff
;
; Copyright (C)2010 Piranha Designs, LLC - All rights reserved.
; Source code licensed under the new/simplified BSD OSI license.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following
; conditions are met:
;
; * Redistributions of source code must retain the above copyright
; notice, this list of conditions and the following disclaimer.
; * Redistributions in binary form must reproduce the above
; copyright notice, this list of conditions and the following
; disclaimer in the documentation and/or other materials provided
; with the distribution.
;
; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
; CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
; INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
; MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
; DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
; CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
; SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
; NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
; HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
; CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
; OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
; EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
;
; Implementation Notes:
;
; This file contains assembly source code that implements
; a binary tree. It is capable of being assembled for both
; 32-bit and 64-bit Intel CPUs and is compatible with
; Unix/Linux and Windows.
; The 32-bit code uses the C language calling convention while the
; 64-bit code makes use of the fastcall calling convention of
; the target operating system.
;
; This implementation does not support duplicate node keys.
; If inserting a node into a tree that already contains an
; identical key the existing key and associated data value is
; replaced with the new node and then freed.
;
; Do not use the free() routine on any node pointers returned by
; any functions; Instead, use binarytree_delete_node() to delete
; a single node containing the key, or binarytree_delete_tree()
; to delete the entire tree.
;
; To assemble this code using Nasm use one of the following commands.
;
; For 32-bit Unix/Linux:
; nasm -f elf32 bintree.asm -o bintree.o
;
; For 64-bit Unix/Linux:
; nasm -f elf64 bintree.asm -o bintree.o
;
; To assemble this code using Nasm for use with Windows:
;
; For 32-bit Windows:
; nasm -f win32 bintree.asm -o bintree.obj
;
; For 64-bit Windows:
; nasm -f win64 bintree.asm -o bintree.obj
%include 'bintree.inc'
[section .text]
%ifidni __BITS__,32
;
; 32-bit C calling convention
;
extern malloc
extern memcmp
extern memcpy
extern free
global binarytree_alloc_node
global binarytree_find_node
global binarytree_insert_node
global binarytree_delete_node
global binarytree_delete_tree
;
; Paramaters and Stack Local Variables (SLV)
;
%define param4 [ebp+20]
%define param3 [ebp+16]
%define param2 [ebp+12]
%define param1 [ebp+8]
%define slv_proot [ebp-4]
%define slv_pnode [ebp-8]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; struct _bst_node_t * binarytree_alloc_node(byte *key, unsigned klen, byte *value, unsigned vlen)
;
; Purpose
; To allocate memory for a binary tree node structure and initialize with key/value pair
;
; Params
; key = ptr to key
; klen = length of key
; value = ptr to data, if any
; vlen = length of data
;
; Returns
; eax
; = struct _bst_node_t *
; = null ptr if key ptr == null, key len < 1, or insufficient memory
;
; Notes
; Params value and vlen may be null or zero
;
binarytree_alloc_node:
push ebp ; set up stack frame
mov ebp, esp
push esi ; save registers used
push edi
push ebx
xor edi, edi ; edi = null ptr
mov esi, dword param1 ; esi = ptr to key
cmp esi, 0
je BST_A_N_X ; if key == 0 jmp to exit
mov ebx, dword param2 ; ebx = key length
cmp ebx, 0
je BST_A_N_X ; if len == 0 jmp to exit
mov ecx, dword param4 ; ecx = value length
mov eax, _bst_node_t_size ; eax = sizeof(_bst_node_t)
add eax, ebx ; + key length
add eax, ecx ; + value length
push eax
call malloc
add esp, 4
cmp eax, 0
je BST_A_N_X ; if eax == 0 jmp to exit
mov edi, eax ; edi = ptr to node
;
; ensure all ptrs are properly initialized
;
mov dword[eax + _bst_node_t.parent], 0
mov dword[eax + _bst_node_t.left], 0
mov dword[eax + _bst_node_t.right], 0
mov dword[eax + _bst_node_t.value], 0
mov dword[eax + _bst_node_t.vlen], 0
;
;copy user key data to node key buffer
;
add eax, _bst_node_t_size ; eax = ptr to node key buffer
mov dword[edi+_bst_node_t.key], eax
mov dword[edi+_bst_node_t.klen], ebx
push ebx ; push params
push esi
push eax
call memcpy
add esp, 12
;
;copy user value, if any, to node value buffer
;
mov esi, dword param3 ; esi = ptr to user value buffer
cmp esi, 0
je BST_A_N_X ; if value == null jmp to exit
mov ecx, dword param4 ; ecx = vlen
cmp ecx, 0
je BST_A_N_X ; if vlen == 0 jmp to exit
mov eax, edi ; eax = ptr to node
add eax, _bst_node_t_size ; eax = ptr to node key buffer
add eax, ebx ; eax = ptr to node value buffer
mov dword[edi+_bst_node_t.value],eax
mov dword[edi+_bst_node_t.vlen], ecx
push ecx ; push params
push esi
push eax
call memcpy
add esp, 12
BST_A_N_X:
mov eax, edi ; eax = struct _bst_node_t*
pop ebx ; restore registers used
pop edi
pop esi
pop ebp
ret ; eax = struct _bst_node_t *
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; struct _bst_node_t * binarytree_find_node(struct _bst_node_t **root, void *key, unsigned int klen)
;
; Purpose
; To find a node within the binary tree containing key
;
; Params
; root = address of ptr to root of binary tree to search
; key = ptr to key
; klen = length of key
;
; Returns
; eax
; = ptr to found node
; = null ptr if root == null, key == null, len == 0, or key not found
;
; Notes
;
binarytree_find_node:
push ebp ; set up stack frame
mov ebp, esp
push esi ; save registers used
push edi ;
push ebx ;
xor eax, eax ; eax = null ptr
mov edi, dword param1 ; edi = pptr to root
cmp edi, 0
je BST_F_N_X ; if pptr == null jmp to exit
mov edi, [edi] ; edi = ptr to root
cmp edi, 0
je BST_F_N_X ; if root ptr == null jmp to exit
mov esi, dword param2 ; esi = key
cmp esi, 0
je BST_F_N_X ; if key == 0 jmp to exit
mov ebx, dword param3 ; ebx = length
cmp ebx, 0
je BST_F_N_X ; if klen == 0 jmp to exit
; get shortest key length
mov eax, dword[edi + _bst_node_t.klen]
cmp eax, ebx
jle BST_F_N_1
mov eax, ebx ; eax = shortest key length
BST_F_N_1:
; compare user key to this nodes key
push eax
mov eax, dword[edi + _bst_node_t.key]
push eax
push esi
call memcmp
add esp, 12
cmp eax, 0
je BST_F_N_5
jg BST_F_N_4
BST_F_N_2:
; assert: user key less than node key
add edi, _bst_node_t.left ; esi = address of node.left
mov eax, dword[edi]
cmp eax, 0
je BST_F_N_X ; if left ptr == null jmp to exit
BST_F_N_3:
push ebx
push esi
push edi
call binarytree_find_node
add esp, 12
jmp BST_F_N_X
BST_F_N_4:
; assert: user key greater than node key
add edi, _bst_node_t.right ; esi = address of node.right
mov eax, dword[edi]
cmp eax, 0
je BST_F_N_X ; if right ptr == null jmp to exit
jmp BST_F_N_3
BST_F_N_5:
; assert: since keys are equal check lengths
mov eax, dword[edi + _bst_node_t.klen]
cmp ebx, eax
jl BST_F_N_2
jg BST_F_N_4
; assert: keys are identical
mov eax, edi
BST_F_N_X:
pop ebx ; restore registers used
pop edi
pop esi
pop ebp
ret ; eax = struct _bst_node_t *
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; int binarytree_insert_node(struct _bst_node_t **root, struct _bst_node_t *node)
;
; Purpose
; To insert a node into the binary tree
;
; Params
; root = address of ptr to binary tree root node
; node = ptr to node to insert into binary tree
;
; Returns
; eax
; = 0 if successful
; = 1 if parameter error
;
; Notes
; Any node contained within the binary tree (including the root node)
; that compares to the node param key is replaced with the new node
; and the old node is deleted. Duplicate nodes are not supported.
;
binarytree_insert_node:
push ebp ; set up stack frame
mov ebp, esp
push esi ; save registers used
push edi ;
; validate parameters to ensure tree integrity
mov edi, dword param1 ; edi = pptr to node
cmp edi, 0
je BST_I_N_RET_1 ; if pptr == 0 return param error
mov esi, dword param2 ; esi = ptr to new node
cmp esi, 0
je BST_I_N_RET_1 ; if pnode == 0 return param error
mov eax, dword[edi] ; eax = ptr to current node
cmp eax, 0
jne BST_I_N_1 ; if ptr != 0 find insertion point
; assert: null root, make node new root
mov dword[edi], esi
jmp BST_I_N_X ; eax = 0 ( success )
BST_I_N_1:
mov edi, eax ; edi = ptr to current node
; get shortest key length
mov eax, dword[edi + _bst_node_t.klen]
mov ecx, dword[esi + _bst_node_t.klen]
cmp eax, ecx
jle BST_I_N_2
mov eax, ecx ; eax = shortest key length
BST_I_N_2:
; compare user key to this nodes key
push eax
mov eax, dword[edi + _bst_node_t.key]
push eax
mov eax, dword[esi + _bst_node_t.key]
push eax
call memcmp
add esp, 12
cmp eax, 0
je BST_I_N_8
jg BST_I_N_5
BST_I_N_3:
; assert: user key less than node key
mov eax, dword[edi + _bst_node_t.left]
cmp eax, 0
je BST_I_N_6
add edi, _bst_node_t.left ; edi = address of node.left
BST_I_N_4:
push esi
push edi
call binarytree_insert_node
add esp, 8
jmp BST_I_N_X
BST_I_N_5:
; assert: user key greater than node key
mov eax, dword[edi + _bst_node_t.right]
cmp eax, 0
je BST_I_N_7
add edi, _bst_node_t.right ; edi = address of node.right
jmp BST_I_N_4
BST_I_N_6:
; insert into left child ptr
mov dword[edi + _bst_node_t.left], esi
; update user node parent
mov dword[esi + _bst_node_t.parent], edi
jmp BST_I_N_RET_0
BST_I_N_7:
; insert into right child ptr
mov dword[edi + _bst_node_t.right], esi
; update user node parent
mov dword[esi + _bst_node_t.parent], edi
jmp BST_I_N_RET_0
BST_I_N_8:
; assert: since keys are equal check lengths
mov eax, dword[edi + _bst_node_t.klen]
mov ecx, dword[esi + _bst_node_t.klen]
cmp ecx, eax
jl BST_I_N_3
jg BST_I_N_5
BST_I_N_9A:
; assert: keys are identical, swap node ptrs
mov eax, dword[edi + _bst_node_t.parent]
mov dword[esi + _bst_node_t.parent], eax
mov eax, dword[edi + _bst_node_t.left]
mov dword[esi + _bst_node_t.left], eax
cmp eax, 0
je BST_I_N_9B
mov dword[eax + _bst_node_t.parent], esi
BST_I_N_9B:
mov eax, dword[edi + _bst_node_t.right]
mov dword[esi + _bst_node_t.right], eax
cmp eax, 0
je BST_I_N_10
mov dword[eax + _bst_node_t.parent], esi
BST_I_N_10:
mov eax, dword param1 ; eax = address of node ptr
mov dword[eax], esi ; store new node ptr
BST_I_N_11:
; safe to free old node in edi
push edi
call free
pop eax
jmp BST_I_N_RET_0
BST_I_N_RET_1:
mov eax, 1 ; eax = param error
jmp BST_I_N_X
BST_I_N_RET_0:
xor eax, eax ; eax = 0 ( success )
BST_I_N_X:
pop edi
pop esi
pop ebp
ret
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; int binarytree_delete_node(struct _bst_node_t **root, void *key, unsigned int klen)
;
; Purpose
; To delete a node from the binary tree
;
; Params
; root = address of ptr to binary tree root node
; key = ptr to key to find and delete
; klen = length of key
;
; Returns
; eax
; = 0 if successful
; = 1 if parameter error
; = 2 if key not found
;
; Notes
; If the only node in the tree is the root node and it compares
; to the key param it is deleted and will be set to null
;
binarytree_delete_node:
push ebp ; set up stack frame
mov ebp, esp
push esi ; save registers used
push edi ;
push ebx ;
; validate parameters to ensure tree integrity
mov edi, dword param1 ; edi = pptr to node
cmp edi, 0
je BST_D_N_RET_1 ; if pptr == null return param error
mov esi, dword param2 ; esi = key
cmp esi, 0
je BST_D_N_RET_1 ; if key == null return param error
mov edx, dword param3 ; edx = key length
cmp edx, 0
je BST_D_N_RET_1 ; if len == 0 return param error
mov edi, dword [edi] ; get node ptr
cmp edi, 0
je BST_D_N_RET_1 ; if edi == 0 return param error
mov ebx, edi ; save ptr to current node
; get shortest key length
mov eax, dword[edi + _bst_node_t.klen]
cmp edx, eax
jle BST_D_N_1
mov edx, eax ; edx = shortest key length
BST_D_N_1:
; compare user key to this nodes key
push edx
mov eax, dword[edi + _bst_node_t.key]
push eax
push esi
call memcmp
pop esi ; reload registers
pop edi
mov edi, ebx
pop edx
cmp eax, 0
je BST_D_N_5
jg BST_D_N_4
BST_D_N_2:
; assert: user key less than node key
add edi, _bst_node_t.left ; edi = ptr to node.left
mov eax, dword[edi]
cmp eax, 0
je BST_D_N_RET_2 ; if left ptr == null return not found
BST_D_N_3:
push edx
push esi
push edi
call binarytree_delete_node
add esp, 12
jmp BST_D_N_X ; eax = error code
BST_D_N_4:
; assert: user key greater than node key
add edi, _bst_node_t.right ; edi = ptr to node.right
mov eax, dword[edi]
cmp eax, 0
je BST_D_N_RET_2 ; if right ptr == null return not found
jmp BST_D_N_3
BST_D_N_5:
; assert: keys are equal, check lengths
mov eax, dword[edi + _bst_node_t.klen]
cmp edx, eax
jl BST_D_N_2
jg BST_D_N_4
; assert: keys are identical. find replacement node, if any
mov ecx, dword[edi + _bst_node_t.right]
cmp ecx, 0
je BST_D_N_9 ; if right ptr == null try left
; special case: check child node for valid left ptr
mov eax, dword[ecx + _bst_node_t.left]
cmp eax, 0
jne BST_D_N_7B
; assert: ecx = replacement node
; set node to delete right ptr to replacement node right ptr
mov eax, dword[ecx + _bst_node_t.right]
mov dword[edi + _bst_node_t.right], eax
jmp BST_D_N_14A
BST_D_N_7A:
; find left-most node
mov eax, dword[ecx + _bst_node_t.left]
cmp eax, 0
je BST_D_N_8
BST_D_N_7B:
mov ecx, eax
jmp BST_D_N_7A
BST_D_N_8:
; assert: ecx = replacement node
; set left ptr of parent node to replacement nodes right ptr
mov eax, dword[ecx + _bst_node_t.parent]
mov edx, dword[ecx + _bst_node_t.right]
mov dword[eax + _bst_node_t.left], edx
; set child node new parent
cmp edx, 0
je BST_D_N_14A
mov dword[edx + _bst_node_t.parent], eax
jmp BST_D_N_14A
BST_D_N_9:
; replace with right-most child of left branch
mov ecx, dword[edi + _bst_node_t.left]
cmp ecx, 0
jne BST_D_N_10
; assert: both child ptrs are null, update parent.
; This also handles special case of deleting last
; node from tree ( root )
jmp BST_D_N_15
BST_D_N_10:
; special case: check child node for valid right ptr
mov eax, dword[ecx + _bst_node_t.right]
cmp eax, 0
jne BST_D_N_12B
; assert: ecx = replacement node
; set node to delete left ptr to replacement node left ptr
mov eax, dword[ecx + _bst_node_t.left]
mov dword[edi + _bst_node_t.left], eax
jmp BST_D_N_14A
BST_D_N_12A:
; find right-most node
mov eax, dword[ecx + _bst_node_t.right]
cmp eax, 0
je BST_D_N_13
BST_D_N_12B:
mov ecx, eax
jmp BST_D_N_12A
BST_D_N_13:
; assert: ecx = replacement node
; set right child of parent to replacement nodes left child
mov eax, dword[ecx + _bst_node_t.parent]
mov edx, dword[ecx + _bst_node_t.left]
mov dword[eax + _bst_node_t.right], edx
; set child node new parent
cmp edx, 0
je BST_D_N_14A
mov dword[edx], eax
BST_D_N_14A:
; copy node ptrs from edi to rcx
mov eax, dword[edi + _bst_node_t.parent]
mov dword[ecx + _bst_node_t.parent], eax
mov eax, dword[edi + _bst_node_t.left]
mov dword[ecx + _bst_node_t.left], eax
cmp eax, 0
je BST_D_N_14B
mov dword[eax + _bst_node_t.parent], ecx
BST_D_N_14B:
mov eax, dword[edi + _bst_node_t.right]
mov dword[ecx + _bst_node_t.right], eax
cmp eax, 0
je BST_D_N_15
mov dword[eax + _bst_node_t.parent], ecx
BST_D_N_15:
mov eax, dword param1 ; eax = pptr to new node
mov dword[eax], ecx
BST_D_N_16:
push edi
call free
add esp, 4
jmp BST_D_N_RET_0
BST_D_N_RET_2:
mov eax, 2 ; eax = 2 ( not found )
jmp BST_D_N_X
BST_D_N_RET_1:
mov eax, 1 ; eax = 1 ( param error )
jmp BST_D_N_X
BST_D_N_RET_0:
xor eax, eax ; eax = 0 ( no error )
BST_D_N_X:
pop ebx
pop edi
pop esi
pop ebp
ret ; eax = error code
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; int binarytree_delete_tree(struct _bst_node_t **root)
;
; Purpose
; To delete all nodes from the binary tree
;
; Params
; root = address of ptr to binary tree root
;
; Returns
; eax
; = 0 if successful
; = 1 if parameter error
;
; Notes
; After all the nodes have been deleted from the
; tree the root node ptr is deleted and set to null
;
binarytree_delete_tree:
push ebp
mov ebp, esp
push edi ; save registers used
mov edi, dword param1 ; edi = pptr to root
cmp edi, 0
je BST_D_T_RET_1 ; if pptr == null jmp to exit
mov edi, dword[edi] ; edi = ptr to root
cmp edi, 0
je BST_D_T_RET_1 ; if ptr == null jmp to exit
add edi, 4 ; edi = ptr to _bst_node_t.left
mov eax, dword[edi] ; eax = node.left
cmp eax, 0
je BST_D_T_1
push edi
call binarytree_delete_tree
pop edi
BST_D_T_1:
add edi, 4 ; edi = ptr to _bst_node_t.right
mov eax, dword[edi] ; eax = node.right
cmp eax, 0
je BST_D_T_2
push edi
call binarytree_delete_tree
pop eax
BST_D_T_2:
mov edi, dword param1 ; edi = pptr to root
mov eax, [edi] ; eax = root ptr
push eax
call free
pop eax
mov dword[edi], 0 ; pptr = null
jmp BST_D_T_RET_0
BST_D_T_RET_1:
mov eax, 1
jmp BST_D_T_X
BST_D_T_RET_0:
xor eax, eax
BST_D_T_X:
pop edi ; restore register
pop ebp
ret
%elifidni __BITS__,64
;
; use 64-bit fastcall calling convention
;
%ifidni __OUTPUT_FORMAT__,elf64
;
; use 64-bit Linux fastcall convention
; ints/longs/ptrs: RDI, RSI, RDX, RCX, R8, R9
; floats/doubles: XMM0 to XMM7
%define slv_pptr [rbp-8]
%define slv_proot [rbp-16]
%define slv_pnode [rbp-24]
%define slv_key [rbp-32]
%define slv_klen [rbp-40]
%define slv_value [rbp-48]
%define slv_vlen [rbp-56]
extern malloc
extern memcmp
extern memcpy
extern free
global binarytree_alloc_node
global binarytree_find_node
global binarytree_insert_node
global binarytree_delete_node
global binarytree_delete_tree
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; struct _bst_node_t * binarytree_alloc_node(byte *key, unsigned klen, byte *value, unsigned vlen)
;
; Purpose
; To allocate memory for a binary tree node structure and initialize with key/value pair
;
; Params
; key = ptr to key
; klen = length of key
; value = ptr to data, if any
; vlen = length of data
;
; Returns
; eax
; = struct _bst_node_t *
; = null ptr if key ptr == null, key len < 1, or insufficient memory
;
; Notes
; Params value and vlen may be null/zero if using the binary tree for keys only
;
binarytree_alloc_node:
push rbp ; create stack frame
mov rbp, rsp
sub rsp, 64 ; create SLV
xor rax, rax ; rax = null ptr
; rdi = key, rsi = klen, rdx = value, rcx = vlen
cmp rdi, 0
je BST_A_N_X ; if key == 0 jmp to exit
cmp rsi, 0
je BST_A_N_X ; if klen == 0 jmp to exit
mov qword slv_key, rdi ; save register values
mov qword slv_klen, rsi ;
mov qword slv_value, rdx ;
mov qword slv_vlen, rcx ;
mov rdi, _bst_node_t_size ; rdi = sizeof(_bst_node_t)
add rdi, rsi ; + key length
add rdi, rcx ; + value length
call malloc
cmp rax, 0
je BST_A_N_X
mov qword slv_pnode, rax ; save node ptr
;
; ensure all ptrs initialized
;
mov qword[rax + _bst_node_t.parent], 0
mov qword[rax + _bst_node_t.left], 0
mov qword[rax + _bst_node_t.right], 0
mov qword[rax + _bst_node_t.value], 0
mov dword[rax + _bst_node_t.vlen], 0
;
; copy user key data to node key buffer
;
mov r10, rax ; r10 = ptr to node
add rax, _bst_node_t_size ; rax = ptr to node key buffer
mov qword[r10+_bst_node_t.key],rax
mov rdi, rax ; rdi = ptr to node key buffer
mov rsi, qword slv_key ; rsi = ptr to user key buffer
mov rdx, qword slv_klen ; rdx = key length
mov dword[r10+_bst_node_t.klen], edx
call memcpy
mov rax, qword slv_pnode ; reload node ptr
;
; copy user value, if any, to node value buffer
;
mov rsi, qword slv_value ; rsi = ptr to user value buffer
cmp rsi, 0
je BST_A_N_X
mov rdx, qword slv_vlen ; rdx = value length
cmp edx, 0
je BST_A_N_X
mov rdi, rax ; rdi = ptr to node
add rdi, _bst_node_t_size ; rdi = ptr to node key buffer
add rdi, qword slv_klen ; rdi = ptr to node value buffer
mov qword[rax+_bst_node_t.value],rdi
mov dword[rax+_bst_node_t.vlen], edx
call memcpy
mov rax, qword slv_pnode ; reload node ptr
BST_A_N_X:
add rsp, 64
pop rbp
ret
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; struct _bst_node_t * binarytree_find_node(struct _bst_node_t **root, void *key, unsigned int klen)
;
; Purpose
; To find a node within the binary tree root containing key
;
; Params
; root = address of ptr to root of binary tree to search
; key = ptr to key
; klen = length of key
;
; Returns
; eax
; = ptr to found node
; = null ptr if root == null, key == null, len == 0, or key not found
;
; Notes
;
binarytree_find_node:
push rbp ; set up stack frame
mov rbp, rsp
sub rsp, 64 ; create SLV and RSS
xor rax, rax ; rax = null ptr
cmp rdi, 0
je BST_F_N_X ; if pptr == null jmp to exit
cmp rsi, 0
je BST_F_N_X ; if key == null jmp to exit
cmp rdx, 0
je BST_F_N_X ; if klen == 0 jmp to exit
mov rdi, [rdi] ; rdi = ptr to root
cmp rdi, 0
je BST_F_N_X ; if root ptr == null jmp to exit
mov qword slv_proot, rdi ; save parameter values to SLV
mov qword slv_key, rsi ;
mov qword slv_klen, rdx ;
; get shortest key length
mov eax, dword[rdi + _bst_node_t.klen]
cmp edx, eax
jle BST_F_N_1
mov edx, eax ; edx = shortest key length
BST_F_N_1:
; compare user key to this nodes key
mov rsi, qword[rdi + _bst_node_t.key]
mov rdi, qword slv_key
call memcmp
mov rdi, qword slv_pnode ; rdi = root node ptr
cmp eax, 0
je BST_F_N_5
jg BST_F_N_4
BST_F_N_2:
; assert: user key less than node key
mov rax, qword[rdi + _bst_node_t.left]
cmp rax, 0
je BST_F_N_X ; if left ptr == null then jmp to exit
add rdi, _bst_node_t.left ; rdi = address of node.left
BST_F_N_3:
mov rsi, qword slv_key
mov rdx, qword slv_klen
call binarytree_find_node
jmp BST_F_N_X
BST_F_N_4:
; assert: user key greater than node key
mov rax, qword[rdi + _bst_node_t.right]
cmp rax, 0
je BST_F_N_X ; if right ptr == null then jmp to exit
add rdi, _bst_node_t.right ; rdi = address of node.right
jmp BST_F_N_3
BST_F_N_5:
; assert: since keys are equal check lengths
mov eax, dword[rdi + _bst_node_t.klen]
mov rdx, qword slv_klen ; rdx = user key length
cmp edx, eax
jl BST_F_N_2
jg BST_F_N_4
; assert: keys are identical
mov rax, rdi
BST_F_N_X:
add rsp, 64 ; remove SLV
pop rbp
ret
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; int binarytree_insert_node(struct _bst_node_t **root, struct _bst_node_t *node)
;
; Purpose
; To insert a node into the binary tree
;
; Params
; root = address of ptr to binary tree root node
; node = ptr to node to insert into binary tree
;
; Returns
; eax
; = 0 if successful
; = 1 if parameter error
;
; Notes
; Any node contained within the binary tree (including the root node)
; that compares to the node param key is replaced with the new node
; and the old node is deleted. Duplicate nodes are not supported.
;
binarytree_insert_node:
push rbp ; set up stack frame
mov rbp, rsp
sub rsp, 32 ; create SLV
; validate parameters to ensure tree integrity
cmp rdi, 0
je BST_I_N_RET_1 ; if pptr == 0 jmp to exit
cmp rsi, 0
je BST_I_N_RET_1 ; if pnode == 0 jmp to exit
mov rax, qword[rdi] ; rax = root ptr
cmp rax, 0
jne BST_I_N_1 ; if proot != 0 find insert point
; assert: null root, make node new root
mov qword[rdi], rsi
jmp BST_I_N_X ; rax = 0 ( success )
BST_I_N_1:
mov qword slv_pptr, rdi ; save register param values
mov qword slv_proot, rax ; save root ptr
mov qword slv_pnode, rsi ; save node ptr
; get shortest key length
mov edx, dword[rax + _bst_node_t.klen]
mov r8d, dword[rsi + _bst_node_t.klen]
cmp edx, r8d
jle BST_I_N_2
mov edx, r8d ; edx = shortest key length
BST_I_N_2:
; compare user key to this nodes key
mov rdi, qword[rsi + _bst_node_t.key]
mov rsi, qword[rax + _bst_node_t.key]
call memcmp
mov rdi, qword slv_proot ; rdi = root ptr
mov rsi, qword slv_pnode ; rsi = node ptr
cmp eax, 0
je BST_I_N_8
jg BST_I_N_5
BST_I_N_3:
; assert: user key less than node key
mov rax, qword[rdi + _bst_node_t.left]
cmp rax, 0
je BST_I_N_6
add rdi, _bst_node_t.left ; rdi = address of node.left
BST_I_N_4:
call binarytree_insert_node
jmp BST_I_N_X ; rax = error code
BST_I_N_5:
; assert: user key greater than node key
mov rax, qword[rdi + _bst_node_t.right]
cmp rax, 0
je BST_I_N_7
add rdi, _bst_node_t.right ; rdi = address of node.right
jmp BST_I_N_4
BST_I_N_6:
; insert into left child ptr
mov qword[rdi + _bst_node_t.left], rsi
; update user node parent
mov qword[rsi + _bst_node_t.parent], rdi
jmp BST_I_N_X ; rax = 0 ( success )
BST_I_N_7:
; insert into right child ptr
mov qword[rdi + _bst_node_t.right], rsi
; update user node parent
mov qword[rsi + _bst_node_t.parent], rdi
jmp BST_I_N_X ; rax = 0 ( success )
BST_I_N_8:
; assert: since keys are equal check lengths
xor r8, r8
mov eax, dword[rdi + _bst_node_t.klen]
mov r8d, dword[rsi + _bst_node_t.klen]
cmp r8d, eax
jl BST_I_N_3
jg BST_I_N_5
BST_I_N_9A:
; assert: keys are identical, prepare for node swap
mov rax, qword[rdi + _bst_node_t.parent]
mov qword[rsi + _bst_node_t.parent], rax
mov rax, qword[rdi + _bst_node_t.left]
mov qword[rsi + _bst_node_t.left], rax
cmp rax, 0
je BST_I_N_9B
mov qword[rax + _bst_node_t.parent], rsi
BST_I_N_9B:
mov rax, qword[rdi + _bst_node_t.right]
mov qword[rsi + _bst_node_t.right], rax
cmp rax, 0
je BST_I_N_10
mov qword[rax + _bst_node_t.parent], rsi
BST_I_N_10:
; assert: swapping out root node
mov rax, qword slv_pptr ; rax = address of root ptr
mov qword [rax], rsi ; store new root node ptr
BST_I_N_11:
; safe to free old node in rdi
call free
jmp BST_I_N_RET_0
BST_I_N_RET_1:
mov rax, 1 ; rax = param error
jmp BST_I_N_X
BST_I_N_RET_0:
xor rax, rax ; rax = 0 ( success )
BST_I_N_X:
add rsp, 32
pop rbp
ret
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; int binarytree_delete_node(struct _bst_node_t **root, void *key, unsigned int klen)
;
; Purpose
; To delete a node from the binary tree
;
; Params
; root = address of ptr to binary tree root node
; key = ptr to key to find and delete
; klen = length of key
;
; Returns
; eax
; = 0 if successful
; = 1 if parameter error
; = 2 if key not found
;
; Notes
; If the only node in the tree is the root node and it compares
; to the key param it is deleted and will be set to null
;
binarytree_delete_node:
push rbp ; set up stack frame
mov rbp, rsp
sub rsp, 64 ; create SLV
cmp rdi, 0
je BST_D_N_RET_1 ; if pptr == null return param error
cmp rsi, 0
je BST_D_N_RET_1 ; if key == null return param error
cmp rdx, 0
je BST_D_N_RET_1 ; if len == 0 return param error
mov qword slv_pptr, rdi ; save parameter values to SLV
mov qword slv_key, rsi ;
mov qword slv_klen, rdx ;
mov rdi, [rdi] ; get node ptr
cmp rdi, 0
je BST_D_N_RET_1 ; if rdi == 0 return param error
mov qword slv_pnode, rdi ; save ptr to current node
; get shortest key length
mov eax, dword[rdi + _bst_node_t.klen]
cmp edx, eax
jle BST_D_N_1
mov edx, eax ; edx = shortest key length
BST_D_N_1:
; compare user key to this nodes key
xchg rdi, rsi
mov rsi, qword[rsi + _bst_node_t.key]
call memcmp
mov rdi, qword slv_pnode ; rdi = node ptr
mov rdx, qword slv_klen
cmp eax, 0
je BST_D_N_5
jg BST_D_N_4
BST_D_N_2:
; assert: user key less than node key
add rdi, _bst_node_t.left ; rdi = ptr to node.left
mov rax, qword[rdi]
cmp rax, 0
je BST_D_N_RET_2 ; if left ptr == null return not found
BST_D_N_3:
mov rsi, qword slv_key
call binarytree_delete_node
jmp BST_D_N_X ; rax = error code
BST_D_N_4:
; assert: user key greater than node key
add rdi, _bst_node_t.right ; rdi = ptr to node.right
mov rax, qword[rdi]
cmp rax, 0
je BST_D_N_RET_2 ; if right ptr == null return not found
jmp BST_D_N_3
BST_D_N_5:
; assert: keys are equal, check lengths
mov eax, dword[rdi + _bst_node_t.klen]
cmp edx, eax
jl BST_D_N_2
jg BST_D_N_4
; assert: keys are identical
mov r9, rdi ; r9 = node to delete
mov r8, qword[r9] ; r8 = _bst_node_t.parent
; find replacement node, if any
mov rcx, qword[r9 + _bst_node_t.right]
cmp rcx, 0
je BST_D_N_9 ; if right ptr == null try left
; special case: check child node for valid left ptr
mov rax, qword[rcx + _bst_node_t.left]
cmp rax, 0
jne BST_D_N_7B
; assert: rcx = replacement node
; set node to delete right ptr to replacement node right ptr
mov rax, qword[rcx + _bst_node_t.right]
mov qword[r9 + _bst_node_t.right], rax
jmp BST_D_N_14A
BST_D_N_7A:
; find left-most node
mov rax, qword[rcx + _bst_node_t.left]
cmp rax, 0
je BST_D_N_8
BST_D_N_7B:
mov rcx, rax
jmp BST_D_N_7A
BST_D_N_8:
; assert: rcx = replacement node
; set left ptr of parent node to replacement nodes right ptr
mov rax, qword[rcx + _bst_node_t.parent]
mov rdx, qword[rcx + _bst_node_t.right]
mov qword[rax + _bst_node_t.left], rdx
; set child node new parent
cmp rdx, 0
je BST_D_N_14A
mov qword[rdx], rax
jmp BST_D_N_14A
BST_D_N_9:
; replace with right-most child of left branch
mov rcx, qword[r9 + _bst_node_t.left]
cmp rcx, 0
jne BST_D_N_10
; assert: both child ptrs are null, update parent.
; This also handles special case of deleting last
; node from tree ( root )
jmp BST_D_N_15
BST_D_N_10:
; special case: check child node for valid right ptr
mov rax, qword[rcx + _bst_node_t.right]
cmp rax, 0
jne BST_D_N_12B
; assert: rcx = replacement node
; set node to delete left ptr to replacement node left ptr
mov rax, qword[rcx + _bst_node_t.left]
mov qword[r9 + _bst_node_t.left], rax
jmp BST_D_N_14A
BST_D_N_12A:
; find right-most node
mov rax, qword[rcx + _bst_node_t.right]
cmp rax, 0
je BST_D_N_13
BST_D_N_12B:
mov rcx, rax
jmp BST_D_N_12A
BST_D_N_13:
; assert: rcx = replacement node
; set right child of parent to replacement nodes left child
mov rax, qword[rcx + _bst_node_t.parent]
mov rdx, qword[rcx + _bst_node_t.left]
mov qword[rax + _bst_node_t.right], rdx
; set child node new parent
cmp rdx, 0
je BST_D_N_14A
mov qword[rdx], rax
BST_D_N_14A:
; copy node ptrs from r9 to rcx
mov rax, qword[r9+_bst_node_t.parent]
mov qword[rcx+_bst_node_t.parent], rax
mov rax, qword[r9+_bst_node_t.left]
mov qword[rcx+_bst_node_t.left], rax
cmp rax, 0
je BST_D_N_14B
mov qword[rax + _bst_node_t.parent], rcx
BST_D_N_14B:
mov rax, qword[r9+_bst_node_t.right]
mov qword[rcx+_bst_node_t.right], rax
cmp rax, 0
je BST_D_N_15
mov qword[rax + _bst_node_t.parent], rcx
BST_D_N_15:
mov rax, slv_pptr ; rax = pptr to new node
mov qword[rax], rcx
BST_D_N_16:
mov rdi, r9 ; rdi = node to delete
call free
jmp BST_D_N_RET_0
BST_D_N_RET_2:
mov rax, 2 ; rax = 2 ( not found )
jmp BST_D_N_X
BST_D_N_RET_1:
mov rax, 1 ; rax = 1 ( param error )
jmp BST_D_N_X
BST_D_N_RET_0:
xor rax, rax ; rax = 0 ( no error )
BST_D_N_X:
add rsp, 64
pop rbp
ret ; rax = error code
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; int binarytree_delete_tree(struct _bst_node_t **root)
;
; Purpose
; To delete all nodes from the binary tree
;
; Params
; root = address of ptr to binary tree root
;
; Returns
; eax
; = 0 if successful, otherwise err code
; = 1 if parameter error
;
; Notes
; After all the nodes have been deleted from the tree
; the root node ptr is deleted and set to null
;
binarytree_delete_tree:
push rbp ; set up stack frame
mov rbp, rsp
sub rsp, 32 ; create SLV
cmp rdi, 0
je BST_D_T_RET_1 ; if pptr == null return param error
mov qword slv_pptr, rdi ; save pptr to root
mov rdi, [rdi] ; rdi = ptr to root node
cmp rdi, 0
je BST_D_T_RET_1 ; if ptr == null return param error
mov qword slv_proot, rdi ; save ptr
add rdi, _bst_node_t.left
mov rax, qword[rdi]
cmp rax, 0
je BST_D_T_1
call binarytree_delete_tree
BST_D_T_1:
mov rdi, qword slv_proot ; rdi = ptr to root
add rdi, _bst_node_t.right
mov rax, qword[rdi]
cmp rax, 0
je BST_D_T_2
call binarytree_delete_tree
BST_D_T_2:
mov rdi, qword slv_proot ; rdi = ptr to node
call free ; free node ptr
mov rax, qword slv_pptr ; rax = pptr to root
mov qword[rax],0 ; set ptr to null
jmp BST_D_T_RET_0
BST_D_T_RET_1:
mov rax, 1
jmp BST_D_T_X
BST_D_T_RET_0:
xor rax, rax
BST_D_T_X:
add rsp, 32
pop rbp
ret
%elifidni __OUTPUT_FORMAT__,win64
;
; use 64-bit Windows fastcall convention:
; ints/longs/ptrs: RCX, RDX, R8, R9
; floats/doubles: XMM0 to XMM3
;
;
; external function calls used by this module
;
extern malloc
extern free
extern memcpy
extern memcmp
;
; binary search tree global functions
;
global binarytree_alloc_node
global binarytree_find_node
global binarytree_insert_node
global binarytree_delete_node
global binarytree_delete_tree
;
; define stack Register Shadow Storage (RSS) space
;
%define win64_rss4 [rbp+40]
%define win64_rss3 [rbp+32]
%define win64_rss2 [rbp+24]
%define win64_rss1 [rbp+16]
; define index into Stack Local Variables (SLV)
%define slv_pnode [rbp-8]
%define slv_proot [rbp-16]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; struct _bst_node_t * binarytree_alloc_node(byte *key, unsigned klen, byte *value, unsigned vlen)
;
; Purpose
; To allocate memory for a binary search tree node structure and initialize with key/value pair
;
; Params
; key = ptr to key
; klen = length of key
; value = ptr to data, if any
; vlen = length of data
;
; Returns
; eax
; = struct _bst_node_t *
; = null ptr if key == null, key len == 0, or insufficient memory
;
; Notes
; Params value and vlen may be null/zero if using the search tree for keys only
;
binarytree_alloc_node:
push rbp ; create stack frame
mov rbp, rsp
sub rsp, 48 ; create SLV and RSS
xor rax, rax ; rax = null ptr
; rcx = key, rdx = klen, r8 = value, r9 = vlen
cmp rcx, 0
je BST_A_N_X ; if key == null ptr jmp to exit
cmp rdx, 0
je BST_A_N_X ; if klen == 0 jmp to exit
mov qword win64_rss1, rcx ; save register param values to RSS
mov qword win64_rss2, rdx ;
mov qword win64_rss3, r8 ;
mov qword win64_rss4, r9 ;
mov rcx, _bst_node_t_size ; rcx = sizeof(_bst_node_t)
add rcx, rdx ; + key length
add rcx, r9 ; + value length
call malloc
cmp rax, 0
je BST_A_N_X
mov qword slv_pnode, rax ; save node ptr
;
; ensure node ptrs are properly initialized
;
mov qword[rax + _bst_node_t.parent], 0
mov qword[rax + _bst_node_t.left], 0
mov qword[rax + _bst_node_t.right], 0
mov qword[rax + _bst_node_t.value], 0
mov dword[rax + _bst_node_t.vlen], 0
;
; copy user key to node key buffer
;
mov rcx, rax ; rcx = ptr to node
add rcx, _bst_node_t_size ; rcx = ptr to node key buffer
mov qword[rax+_bst_node_t.key], rcx
mov rdx, qword win64_rss1 ; rdx = ptr to user key buffer
mov r8, qword win64_rss2 ; r8 = key length
mov dword[rax+_bst_node_t.klen], r8d
call memcpy
mov rax, qword slv_pnode ; reload node ptr
;
; copy user value, if any, to node value buffer
;
mov rdx, qword win64_rss3 ; rdx = ptr to user value buffer
cmp rdx, 0
je BST_A_N_X ; if value == nullptr then jmp to exit
mov r8, qword win64_rss4 ; r8 = value length
cmp r8d, 0
je BST_A_N_X ; if vlen == 0 then jmp to exit
mov rcx, rax ; rcx = ptr to node
add rcx, _bst_node_t_size ; rcx = ptr to node key buffer
add rcx, qword win64_rss2 ; rcx = ptr to node value buffer
mov qword[rax+_bst_node_t.value],rcx
mov dword[rax+_bst_node_t.vlen], r8d
call memcpy
mov rax, qword slv_pnode ; return node ptr
BST_A_N_X:
add rsp, 48 ; remove SLV and RSS
pop rbp
ret ; rax = node ptr
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; struct _bst_node_t * binarytree_find_node(struct _bst_node_t **root, void *key, unsigned int klen)
;
; Purpose
; To find a node within the binary tree containing key
;
; Params
; root = address of binary tree root ptr
; key = ptr to key
; klen = length of key
;
; Returns
; rax
; = ptr to found node
; = nullptr if root == null, key == null, len == 0, or key not found
;
; Notes
;
binarytree_find_node:
push rbp ; set up stack frame
mov rbp, rsp
sub rsp, 48 ; create SLV and RSS
xor rax, rax ; rax = null ptr
cmp rcx, 0
je BST_F_N_X ; if pptr == null jmp to exit
cmp r8, 0
je BST_F_N_X ; if klen == 0 jmp to exit
mov rcx, [rcx] ; rcx = ptr to root
cmp rcx, 0
je BST_F_N_X ; if root ptr == null jmp to exit
mov qword win64_rss1, rcx ; save parameter values to RSS
mov qword win64_rss2, rdx ;
mov qword win64_rss3, r8 ;
; get shortest key length
mov eax, dword[rcx + _bst_node_t.klen]
cmp r8d, eax
jle BST_F_N_1
mov r8d, eax ; r8 = shortest key length
BST_F_N_1:
; compare user key to this nodes key
mov rdx, qword[rcx + _bst_node_t.key]
mov rcx, qword win64_rss2
call memcmp
mov rcx, qword win64_rss1 ; rcx = root node ptr
cmp eax, 0
je BST_F_N_5
jg BST_F_N_4
BST_F_N_2:
; assert: user key less than node key
mov rax, qword[rcx + _bst_node_t.left]
cmp rax, 0
je BST_F_N_X ; if left ptr == null then jmp to exit
add rcx, _bst_node_t.left ; rcx = address of node.left
BST_F_N_3:
mov rdx, qword win64_rss2
mov r8, qword win64_rss3
call binarytree_find_node
jmp BST_F_N_X
BST_F_N_4:
; assert: user key greater than node key
mov rax, qword[rcx + _bst_node_t.right]
cmp rax, 0
je BST_F_N_X ; if right ptr == null then jmp to exit
add rcx, _bst_node_t.right ; rcx = address of node.right
jmp BST_F_N_3
BST_F_N_5:
; assert: since keys are equal check lengths
mov eax, dword[rcx + _bst_node_t.klen]
mov r8, qword win64_rss3 ; r8 = user key length
cmp r8d, eax
jl BST_F_N_2
jg BST_F_N_4
; assert: keys are identical
mov rax, rcx
BST_F_N_X:
add rsp, 48 ; remove SLV and RSS
pop rbp
ret
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; int binarytree_insert_node(struct _bst_node_t **root, struct _bst_node_t *node)
;
; Purpose
; To insert a node into the binary search tree
;
; Params
; root = address of ptr to binary tree root node
; node = ptr to node to insert into binary tree
;
; Returns
; eax
; = 0 if successful
; = 1 if parameter error
;
; Notes
; Any node contained within the binary search tree (including the root node)
; that compares to the node param key is replaced with the new node and the
; old node is deleted. Duplicate nodes are not supported.
;
binarytree_insert_node:
push rbp ; set up stack frame
mov rbp, rsp
sub rsp, 48 ; create SLV and RSS
; validate parameters to ensure tree integrity
cmp rcx, 0
je BST_I_N_RET_1 ; if pptr == 0 then jmp to exit
cmp rdx, 0
je BST_I_N_RET_1 ; if node == 0 then jmp to exit
mov qword win64_rss1, rcx ; save register param values
mov qword win64_rss2, rdx ;
mov rcx, qword[rcx] ; rcx = ptr to current node
cmp rcx, 0
je BST_I_N_9
mov qword slv_pnode, rcx ; save ptr to current node
; get shortest key length
mov r8d, dword[rcx + _bst_node_t.klen]
mov r9d, dword[rdx + _bst_node_t.klen]
cmp r9d, 0
je BST_I_N_X ; if r9d == 0 then jmp to exit
cmp r8d, r9d
jle BST_I_N_1
mov r8d, r9d ; r8 = shortest key length
BST_I_N_1:
; compare this nodes key to user key
mov rcx, qword[rcx + _bst_node_t.key]
mov rdx, qword[rdx + _bst_node_t.key]
call memcmp
mov rcx, qword slv_pnode ; rcx = ptr to current node
mov rdx, qword win64_rss2 ; rdx = ptr to new node
cmp eax, 0
je BST_I_N_7
jl BST_I_N_4
BST_I_N_2:
; assert: user key less than node key
mov rax, qword[rcx + _bst_node_t.left]
cmp rax, 0
je BST_I_N_5
add rcx, _bst_node_t.left ; rcx = address of node.left
BST_I_N_3:
call binarytree_insert_node
jmp BST_I_N_X
BST_I_N_4:
; assert: user key greater than node key
mov rax, qword[rcx + _bst_node_t.right]
cmp rax, 0
je BST_I_N_6
add rcx, _bst_node_t.right ; rcx = address of node.right
jmp BST_I_N_3
BST_I_N_5:
; insert into left child ptr
mov qword[rcx + _bst_node_t.left], rdx
; update user node parent
mov qword[rdx + _bst_node_t.parent], rcx
jmp BST_I_N_RET_0
BST_I_N_6:
; insert into right child ptr
mov qword[rcx + _bst_node_t.right], rdx
; update user node parent
mov qword[rdx + _bst_node_t.parent], rcx
jmp BST_I_N_RET_0
BST_I_N_7:
; assert: since keys are equal check lengths
xor r8, r8
mov eax, dword[rcx + _bst_node_t.klen]
mov r8d, dword[rdx + _bst_node_t.klen]
cmp r8d, eax
jl BST_I_N_2
jg BST_I_N_4
BST_I_N_8A:
; assert: keys are identical, prepare for node swap
mov rax, qword[rcx + _bst_node_t.parent]
mov qword[rdx + _bst_node_t.parent], rax
mov rax, qword[rcx + _bst_node_t.left]
mov qword[rdx + _bst_node_t.left], rax
cmp rax, 0
je BST_I_N_8B
mov qword[rax + _bst_node_t.parent], rdx
BST_I_N_8B:
mov rax, qword[rcx + _bst_node_t.right]
mov qword[rdx + _bst_node_t.right], rax
cmp rax, 0
je BST_I_N_9
mov qword[rax + _bst_node_t.parent], rdx
BST_I_N_9:
mov rax, qword win64_rss1 ; rax = address of ptr
mov qword [rax], rdx ; store new node ptr
cmp rcx, 0 ; check for null root
je BST_I_N_RET_0 ; if rcx == null jmp to exit
call free ; free old node
jmp BST_I_N_RET_0
BST_I_N_RET_1:
mov rax, 1 ; rax = 1 ( param error )
jmp BST_I_N_X
BST_I_N_RET_0:
xor rax, rax ; rax = 0 ( success )
BST_I_N_X:
add rsp, 48
pop rbp
ret
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; int binarytree_delete_node(struct _bst_node_t **root, void *key, unsigned int klen)
;
; Purpose
; To delete a node from the binary tree
;
; Params
; root = address of ptr to binary tree root node
; key = ptr to key to find and delete
; klen = length of key
;
; Returns
; eax
; = 0 if successful
; = 1 if parameter error
; = 2 if key not found
;
; Notes
; If the only node remaining in the tree is the root node and it
; compares to the key param it is deleted and will be set to null
;
binarytree_delete_node:
push rbp ; set up stack frame
mov rbp, rsp
sub rsp, 48 ; create SLV and RSS
cmp rcx, 0
je BST_D_N_RET_1 ; if pptr == null return param error
cmp rdx, 0
je BST_D_N_RET_1 ; if key == null return param error
cmp r8, 0
je BST_D_N_RET_1 ; if len == 0 return param error
mov qword win64_rss1, rcx ; save register param values to RSS
mov qword win64_rss2, rdx ;
mov qword win64_rss3, r8 ;
mov rcx, [rcx] ; get root ptr
cmp rcx, 0
je BST_D_N_RET_1 ; if rcx == 0 return param error
mov qword slv_pnode, rcx ; save ptr to current node
; get shortest key length
mov eax, dword[rcx + _bst_node_t.klen]
cmp r8d, eax
jle BST_D_N_1
mov r8d, eax ; r8 = shortest key length
BST_D_N_1:
; compare user key to this nodes key
mov rdx, qword[rcx + _bst_node_t.key]
mov rcx, qword win64_rss2
call memcmp
mov rcx, qword slv_pnode ; rcx = node ptr
cmp eax, 0
je BST_D_N_5
jg BST_D_N_4
BST_D_N_2:
; assert: user key less than node key
add rcx, _bst_node_t.left ; rcx = ptr to node.left
mov rax, qword[rcx]
cmp rax, 0
je BST_D_N_RET_2 ; if left ptr == null return not found
BST_D_N_3:
mov rdx, qword win64_rss2
mov r8, qword win64_rss3
call binarytree_delete_node
jmp BST_D_N_X ; rax = error code
BST_D_N_4:
; assert: user key greater than node key
add rcx, _bst_node_t.right ; rcx = ptr to node.right
mov rax, qword[rcx]
cmp rax, 0
je BST_D_N_RET_2 ; if right ptr == null return not found
jmp BST_D_N_3
BST_D_N_5:
; assert: keys are equal, check lengths
mov eax, dword[rcx + _bst_node_t.klen]
mov r8, qword win64_rss3 ; r8 = user key length
cmp r8d, eax
jl BST_D_N_2
jg BST_D_N_4
; assert: keys are identical
mov r9, rcx ; r9 = node to delete
mov r8, qword[r9] ; r8 = _bst_node_t.parent
; find replacement node, if any
mov rcx, qword[r9 + _bst_node_t.right]
cmp rcx, 0
je BST_D_N_9 ; if right ptr == null try left
; special case: check child node for valid left ptr
mov rax, qword[rcx + _bst_node_t.left]
cmp rax, 0
jne BST_D_N_7B
; assert: rcx = replacement node
; set node to delete right ptr to replacement node right ptr
mov rax, qword[rcx + _bst_node_t.right]
mov qword[r9 + _bst_node_t.right], rax
jmp BST_D_N_14A
BST_D_N_7A:
; find left-most node
mov rax, qword[rcx + _bst_node_t.left]
cmp rax, 0
je BST_D_N_8
BST_D_N_7B:
mov rcx, rax
jmp BST_D_N_7A
BST_D_N_8:
; assert: rcx = replacement node
; set left ptr of parent node to replacement nodes right ptr
mov rax, qword[rcx] ; rax = _bst_node_t.parent
mov rdx, qword[rcx + _bst_node_t.right]
mov qword[rax + _bst_node_t.left], rdx
; set child node new parent
cmp rdx, 0
je BST_D_N_14A
mov qword[rdx], rax
jmp BST_D_N_14A
BST_D_N_9:
; replace with right-most child of left branch
mov rcx, qword[r9 + _bst_node_t.left]
cmp rcx, 0
jne BST_D_N_10
; assert: both child ptrs are null, update parent.
; This also handles special case of deleting last
; node from tree ( root )
jmp BST_D_N_15
BST_D_N_10:
; special case: check child node for valid right ptr
mov rax, qword[rcx + _bst_node_t.right]
cmp rax, 0
jne BST_D_N_12B
; assert: rcx = replacement node
; set node to delete left ptr to replacement node left ptr
mov rax, qword[rcx + _bst_node_t.left]
mov qword[r9 + _bst_node_t.left], rax
jmp BST_D_N_14A
BST_D_N_12A:
; find right-most node
mov rax, qword[rcx + _bst_node_t.right]
cmp rax, 0
je BST_D_N_13
BST_D_N_12B:
mov rcx, rax
jmp BST_D_N_12A
BST_D_N_13:
; assert: rcx = replacement node
; set right child of parent to replacement nodes left child
mov rax, qword[rcx + _bst_node_t.parent]
mov rdx, qword[rcx + _bst_node_t.left]
mov qword[rax + _bst_node_t.right], rdx
; set child node new parent
cmp rdx, 0
je BST_D_N_14A
mov qword[rdx], rax
BST_D_N_14A:
; copy node ptrs from r9 to rcx
mov rax, qword[r9+_bst_node_t.parent]
mov qword[rcx+_bst_node_t.parent], rax
mov rax, qword[r9+_bst_node_t.left]
mov qword[rcx+_bst_node_t.left], rax
cmp rax, 0
je BST_D_N_14B
mov qword[rax + _bst_node_t.parent], rcx
BST_D_N_14B:
mov rax, qword[r9+_bst_node_t.right]
mov qword[rcx+_bst_node_t.right], rax
cmp rax, 0
je BST_D_N_15
mov qword[rax + _bst_node_t.parent], rcx
BST_D_N_15:
mov rax, win64_rss1 ; rax = pptr to new node
mov qword[rax], rcx
BST_D_N_16:
mov rcx, r9 ; rcx = node to delete
call free
jmp BST_D_N_RET_0
BST_D_N_RET_2:
mov rax, 2 ; rax = 2 ( not found )
jmp BST_D_N_X
BST_D_N_RET_1:
mov rax, 1 ; rax = 1 ( param error )
jmp BST_D_N_X
BST_D_N_RET_0:
xor rax, rax ; rax = 0 ( no error )
BST_D_N_X:
add rsp, 48
pop rbp
ret ; rax = error code
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; int binarytree_delete_tree(struct _bst_node_t **root)
;
; Purpose
; To delete all nodes from the binary search tree
;
; Params
; root = address of ptr to binary search tree root
;
; Returns
; eax
; = 0 if successful
; = 1 if parameter error
;
; Notes
; After all the nodes have been deleted from the tree
; the root node ptr is deleted and set to null
;
binarytree_delete_tree:
push rbp ; set up stack frame
mov rbp, rsp
sub rsp, 48 ; create SLV and RSS
cmp rcx, 0
je BST_D_T_RET_1 ; if pptr == null return param error
mov qword win64_rss1, rcx ; save pptr to root
mov rcx, [rcx] ; rcx = ptr to root node
cmp rcx, 0
je BST_D_T_RET_1 ; if ptr == null return param error
mov qword slv_proot, rcx ; save ptr
add rcx, _bst_node_t.left
mov rax, qword[rcx]
cmp rax, 0
je BST_D_T_1
call binarytree_delete_tree
BST_D_T_1:
mov rcx, qword slv_proot ; rcx = ptr to root
add rcx, _bst_node_t.right
mov rax, qword[rcx]
cmp rax, 0
je BST_D_T_2
call binarytree_delete_tree
BST_D_T_2:
mov rcx, qword slv_proot ; rcx = ptr to node
call free ; free node ptr
mov rax, win64_rss1 ; rax = pptr to root
mov qword[rax],0 ; set ptr to null
jmp BST_D_T_RET_0
BST_D_T_RET_1:
mov rax, 1
jmp BST_D_T_X
BST_D_T_RET_0:
xor rax, rax
BST_D_T_X:
add rsp, 48
pop rbp
ret
%else
%fatal unknown output format: __OUTPUT_FORMAT__
%endif
%else
%fatal unknown bit size: __BITS__
%endif
| 27.361204
| 101
| 0.590934
|
bd9d59273917514e1da1e66f4d5a86effbff9286
| 366
|
asm
|
Assembly
|
programs/oeis/095/A095340.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/095/A095340.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/095/A095340.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A095340: Total number of nodes in all labeled graphs on n nodes.
; 1,4,24,256,5120,196608,14680064,2147483648,618475290624,351843720888320,396316767208603648,885443715538058477568,3929008913747544817795072,34662321099990647697175478272,608472288109550112718417538580480
add $0,1
mov $1,$0
mov $2,$0
sub $2,$0
add $2,1
lpb $1
mul $0,$2
sub $1,1
mul $2,2
lpe
| 26.142857
| 204
| 0.781421
|
e9e353d6c48cb9ca1aa12ce02165b6247ea9e116
| 727
|
asm
|
Assembly
|
oeis/251/A251720.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/251/A251720.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/251/A251720.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A251720: a(n) = (p_n)^2 * p_{n+1}, where p_n is the n-th prime, A000040(n).
; Submitted by Jamie Morken(s2)
; 12,45,175,539,1573,2873,5491,8303,15341,26071,35557,56129,72283,86903,117077,165731,212341,249307,318719,367993,420991,518003,613121,768337,950309,1050703,1135163,1247941,1342553,1621663,2112899,2351057,2608891,2878829,3352351,3579757,4017787,4437023,4824797,5357291,5799421,6257351,7040833,7338053,7722991,8355811,9928183,11288483,11800141,12218753,12975071,13766161,14578331,16191257,17370887,18606461,19609831,20343157,21560849,22345963,23466077,26355643,29311439,30273673,31056173,33261859
mov $1,$0
seq $0,40 ; The prime numbers.
pow $0,2
add $1,1
seq $1,40 ; The prime numbers.
mul $1,60
mul $0,$1
div $0,60
| 55.923077
| 495
| 0.786795
|
c23c7d24590fdc9f937eabb9e80272873f779320
| 1,078
|
asm
|
Assembly
|
basic/16.2byte_4byte_mul.asm
|
boa9448/assembly_study
|
8416d10b3abce6c3b4b8bd0a11be7d9a05ea486a
|
[
"MIT"
] | null | null | null |
basic/16.2byte_4byte_mul.asm
|
boa9448/assembly_study
|
8416d10b3abce6c3b4b8bd0a11be7d9a05ea486a
|
[
"MIT"
] | null | null | null |
basic/16.2byte_4byte_mul.asm
|
boa9448/assembly_study
|
8416d10b3abce6c3b4b8bd0a11be7d9a05ea486a
|
[
"MIT"
] | null | null | null |
%include "io64.inc"
section .text
global CMAIN
CMAIN:
;write your code here
;mul param1(2byte) => dx:ax = ax * param1
;param1은 레지스터만 허용된다
;연산결과는 dx와 ax에 저장된다
;결과의 상위 값은 dx에 하위 값은 ax에 저장된다
;결과값을 4byte로 만들어야 한다면 다음과 같은 방법으로 진행한다
;shl dx, 16
;and eax, 0x0000ffff
;or eax, edx
;mul param1(4byte) => edx:eax = eax * param1
;param1은 레지스터만 허용된다
;연산결과는 edx와 eax에 저장된다
;결과의 상위 값은 edx에 하위 값은 eax에 저장된다
;결과값을 8byte로 만들어야 한다면 다음과 같은 방법으로 진행한다
;shl edx, 32
;and rax, 0x00000000ffffffff
;or rax, rdx
mov ax, 0x1234
mov bx, 0x1234
mul bx
shl edx, 16
and eax, 0x0000ffff
or eax, edx
PRINT_STRING msg_2byte
PRINT_HEX 4, eax
NEWLINE
mov eax, 0x12345678
mov ebx, 0x12345678
mul ebx
shl rdx, 32
and rax, 0x00000000ffffffff
or rax, rdx
PRINT_STRING msg_4byte
PRINT_HEX 8, rax
NEWLINE
xor rax, rax
ret
section .data
msg_2byte db "2byte result : ", 0x00
msg_4byte db "4byte result : ", 0x00
| 19.6
| 48
| 0.599258
|
5d8c9357a28dbe74093148a992c0d722731f26de
| 353
|
asm
|
Assembly
|
oeis/139/A139157.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/139/A139157.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/139/A139157.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A139157: Natural numbers of the form (n!+10)/10.
; Submitted by Jon Maiga
; 13,73,505,4033,36289,362881,3991681,47900161,622702081,8717829121,130767436801,2092278988801,35568742809601,640237370572801,12164510040883201,243290200817664001,5109094217170944001
mov $1,$0
add $0,5
add $1,4
lpb $1
mul $0,$1
sub $1,1
lpe
sub $0,120
div $0,10
add $0,13
| 23.533333
| 182
| 0.76204
|
cc4a45a65a312e75950d168511eed1b276badc75
| 262
|
asm
|
Assembly
|
programs/oeis/070/A070625.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/070/A070625.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/070/A070625.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A070625: n^5 mod 42.
; 0,1,32,33,16,17,6,7,8,39,40,23,24,13,14,15,4,5,30,31,20,21,22,11,12,37,38,27,28,29,18,19,2,3,34,35,36,25,26,9,10,41,0,1,32,33,16,17,6,7,8,39,40,23,24,13,14,15,4,5,30,31,20,21,22,11,12,37,38,27,28,29,18,19,2
pow $0,5
mod $0,42
mov $1,$0
| 37.428571
| 208
| 0.618321
|
1449253d546d75d3a72ef44264bbf9c5a21b0f8f
| 694
|
asm
|
Assembly
|
oeis/090/A090316.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/090/A090316.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/090/A090316.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A090316: a(n) = 24*a(n-1) + a(n-2), starting with a(0) = 2 and a(1) = 24.
; Submitted by Jon Maiga
; 2,24,578,13896,334082,8031864,193098818,4642403496,111610782722,2683301188824,64510839314498,1550943444736776,37287153512997122,896442627756667704,21551910219673022018,518142287899909196136,12456966819817493729282,299485345963519758698904,7200105269944291702502978,173102011824626520618770376,4161648389060980786552992002,100052663349288165397890578424,2405425568771976950335926874178,57830266313876734973460135558696,1390331817101813616313379180282882,33425793876757403526494560462347864
mov $3,2
lpb $0
sub $0,1
add $2,$3
mov $3,$1
mov $1,$2
mul $2,12
add $3,$2
lpe
mov $0,$3
| 46.266667
| 490
| 0.819885
|
9e2aeac52a038ce20308d2e9c9f82cf3659609a7
| 790
|
asm
|
Assembly
|
oeis/290/A290235.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/290/A290235.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/290/A290235.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A290235: Decimal representation of the diagonal from the origin to the corner of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 773", based on the 5-celled von Neumann neighborhood.
; 1,1,7,3,31,7,127,15,511,31,2047,63,8191,127,32767,255,131071,511,524287,1023,2097151,2047,8388607,4095,33554431,8191,134217727,16383,536870911,32767,2147483647,65535,8589934591,131071,34359738367,262143,137438953471,524287,549755813887,1048575,2199023255551,2097151,8796093022207,4194303,35184372088831,8388607,140737488355327,16777215,562949953421311,33554431,2251799813685247,67108863,9007199254740991,134217727,36028797018963967,268435455,144115188075855871,536870911,576460752303423487
add $0,1
mov $2,2
gcd $2,$0
div $0,$2
mov $1,2
pow $1,$0
sub $1,1
mov $0,$1
| 65.833333
| 491
| 0.820253
|
9f9b41944127e8c021462db2b0b32e33152931b2
| 12,837
|
asm
|
Assembly
|
writeups/flag3/src/init.asm
|
zer0x64/nsec2022-gband
|
7f831b1af83c7f766f139dfce14776b654ee8d9a
|
[
"Apache-2.0",
"MIT"
] | null | null | null |
writeups/flag3/src/init.asm
|
zer0x64/nsec2022-gband
|
7f831b1af83c7f766f139dfce14776b654ee8d9a
|
[
"Apache-2.0",
"MIT"
] | null | null | null |
writeups/flag3/src/init.asm
|
zer0x64/nsec2022-gband
|
7f831b1af83c7f766f139dfce14776b654ee8d9a
|
[
"Apache-2.0",
"MIT"
] | null | null | null |
include "constants.inc"
SECTION FRAGMENT "INIT", ROMX
LCDC_SGB_TRAN = LCDCF_BGON | LCDCF_OBJOFF | LCDCF_OBJ8 | LCDCF_BG9800 | LCDCF_BG8800 | LCDCF_WINOFF | LCDCF_WIN9C00 | LCDCF_ON
SGB_TRANSFER_TYPE_TILE_DATA = 0
SGB_TRANSFER_TYPE_TILE_MAP = 1
SGB_TRANSFER_TYPE_PALETTES = 2
Init::
; Disable vblank interrupts for now
xor a
ld [rIE], a
; Set scroll values to 0
ld [rSCY], a
ld [rSCX], a
ld [shadowScrollX], a
ld [shadowScrollY], a
; We are not waiting for a frame
ld a, 0
ld [waitForFrame], a
; Check and init Sgb frame
ld a, [isSgb]
cp $14
jr z, .runningInSgb
; Not running in SGB, setting the value to 0
ld a, 0
jr .sgbCheckComplete
.runningInSgb
; Running in SGB mode, init frame and set the value to 1
call InitSgb
ld a, 1
.sgbCheckComplete
ld [isSgb], a
; Check A for CGB now
ld a, [isCgb]
cp $11
jr z, .runningInCgb
; Not running in CGB, setting the value to 0 and init DMG
call InitDmg
ld a, 0
jr .cgbCheckComplete
.runningInCgb
; Running in CGB mode, init frame and set the value to 1
call InitCgb
ld a, 1
.cgbCheckComplete
ld [isCgb], a
; Validate and create save file
; Enable SRAM
ld a, CART_SRAM_ENABLE
ld [rRAMG], a
; Switch the bank
ld a, BANK(saveHeader)
ld [rRAMB], a
; Validate the header
ld de, expectedSramHeader
ld hl, saveHeader
ld bc, saveHeader.end - saveHeader
call MemCmp
cp a, 0
jr z, .saveIsValid
; Save is invalid, reset it
; Copy header
ld de, expectedSramHeader
ld hl, saveHeader
ld bc, saveHeader.end - saveHeader
call MemCpy
; Set everything else to 0
ld a, 0
ld hl, saveHeader.end
ld bc, sramEnd - saveHeader.end
call MemSet
.saveIsValid
call LoadSaveData
; Disable SRAM
ld a, CART_SRAM_DISABLE
ld [rRAMG], a
; Copy OAM DMA routine
ld de, oamDmaROM
ld hl, OamDma
ld bc, oamDmaROM.end - oamDmaROM
call MemCpy
; Fill shadow OAM with 0
ld a, 0
ld hl, shadowOAM
ld bc, $A0
call MemSet
ld a, IEF_VBLANK | IEF_SERIAL ; The only interupt we want is the VBLANK
ld [rIE], a
ld a, AUDENA_OFF ; Sound OFF since we don't use it
ld [rNR52], a
ret
InitSgb::
; Check if we really are running on an SGB
call CheckSGB
ret nc
; Send magic packets to start transfer
di
call PrepareSnesTransfer
ei
; Copy the 128 tiles of the frame to SNES RAM
ld a, SGB_TRANSFER_TYPE_TILE_DATA
ld [copyingSGBTileDataState], a
ld hl, ChrTrnPacket00
ld de, SGBBorderGraphicsAscii
call CopyGfxToSnes
; Copy the next 128 tiles of the frame to SNES RAM
ld a, SGB_TRANSFER_TYPE_TILE_DATA
ld [copyingSGBTileDataState], a
ld hl, ChrTrnPacket80
ld de, SGBBorderGraphics
call CopyGfxToSnes
; Copy the frame map to SNES RAM
ld a, SGB_TRANSFER_TYPE_TILE_MAP
ld [copyingSGBTileDataState], a
ld hl, PctTrnPacket
ld de, BorderPalettes
call CopyGfxToSnes
; Copy the custom game palettes to SNES RAM
ld a, SGB_TRANSFER_TYPE_PALETTES
ld [copyingSGBTileDataState], a
ld hl, PalTrnPacket
ld de, SGBSuperPalettes
call CopyGfxToSnes
; Reset VRAM
ld a, 0
ld hl, _VRAM
ld bc, $2000
call MemSet
ld hl, MaskEnCancelPacket
call SendPackets
ld a, 0
ld [rLCDC], a
ret
InitCgb::
; Init the palettes
; Background Palette
ld a, $80; ; Autoincrement, start at 0
ld [rBCPS], a
ld de, cgbBackgroundPalette ; Array to copy
ld c, cgbBackgroundPalette.end - cgbBackgroundPalette ; Loop counter
; Init VRAM bank
ld a, 0
ld [rVBK], a
.background_copy_loop
ld a, [de]
ld [rBCPD], a; Write byte to palette data
inc de
dec c
jr nz, .background_copy_loop
; Object Palette
ld a, $80; ; Autoincrement, start at 0
ld [rOCPS], a
ld de, cgbObjectPalette ; Array to copy
ld c, cgbObjectPalette.end - cgbObjectPalette ; Loop counter
.object_copy_loop
ld a, [de]
ld [rOCPD], a; Write byte to palette data
inc de
dec c
jr nz, .object_copy_loop
; GDMA the sprite tile data
ld a, HIGH(spriteTileData)
ld [rHDMA1], a
ld a, LOW(spriteTileData)
ld [rHDMA2], a
ld a, HIGH(_VRAM8000)
ld [rHDMA3], a
ld a, LOW(_VRAM8000)
ld [rHDMA4], a
; Start GDMA
ld a, (((spriteTileData.end - spriteTileData) >> 4) - 1) | HDMA5F_MODE_GP
ld [rHDMA5], a
; GDMA the background tile data
ld a, HIGH(backgroundTileData)
ld [rHDMA1], a
ld a, LOW(backgroundTileData)
ld [rHDMA2], a
ld a, HIGH(_VRAM8800)
ld [rHDMA3], a
ld a, LOW(_VRAM8800)
ld [rHDMA4], a
; Start GDMA
ld a, (((backgroundTileData.end - backgroundTileData) >> 4) - 1) | HDMA5F_MODE_GP
ld [rHDMA5], a
; GDMA the ASCII tile data
ld a, HIGH(asciiTileData)
ld [rHDMA1], a
ld a, LOW(asciiTileData)
ld [rHDMA2], a
ld a, HIGH(_VRAM9000)
ld [rHDMA3], a
ld a, LOW(_VRAM9000)
ld [rHDMA4], a
; Start GDMA
ld a, (((asciiTileData.end - asciiTileData) >> 4) - 1) | HDMA5F_MODE_GP
ld [rHDMA5], a
ret
InitDmg::
; Init a basic 11100100 palette everywhere for now
ld a, $e4
ld [rBGP], a
ld [rOBP0], a
ld [rOBP1], a
; Copy the sprite tile data
ld de, spriteTileData
ld hl, _VRAM8000
ld bc, spriteTileData.end - spriteTileData
call MemCpy
; Copy the ascii tile data
ld de, backgroundTileData
ld hl, _VRAM8800
ld bc, backgroundTileData.end - backgroundTileData
call MemCpy
; Copy the ascii tile data
ld de, asciiTileData
ld hl, _VRAM9000
ld bc, asciiTileData.end - asciiTileData
call MemCpy
ret
; Initialize SNES transfer by sending Freeze and some magic packets
PrepareSnesTransfer:
ld hl, MaskEnFreezePacket
call SendPackets
ld hl, DataSnd0
call SendPackets
ld hl, DataSnd1
call SendPackets
ld hl, DataSnd2
call SendPackets
ld hl, DataSnd3
call SendPackets
ld hl, DataSnd4
call SendPackets
ld hl, DataSnd5
call SendPackets
ld hl, DataSnd6
call SendPackets
ld hl, DataSnd7
call SendPackets
ret
; Indicate whether the game is running on an SGB.
; @return Carry flag if true
CheckSGB::
ld hl, MltReq2Packet
di
call SendPackets
ei
call Wait7000
ldh a, [rP1]
and $3
cp $3
jr nz, .isSGB
ld a, $20
ldh [rP1], a
ldh a, [rP1]
ldh a, [rP1]
call Wait7000
call Wait7000
ld a, $30
ldh [rP1], a
call Wait7000
call Wait7000
ld a, $10
ldh [rP1], a
ldh a, [rP1]
ldh a, [rP1]
ldh a, [rP1]
ldh a, [rP1]
ldh a, [rP1]
ldh a, [rP1]
call Wait7000
call Wait7000
ld a, $30
ldh [rP1], a
ldh a, [rP1]
ldh a, [rP1]
ldh a, [rP1]
call Wait7000
call Wait7000
ldh a, [rP1]
and $3
cp $3
jr nz, .isSGB
call SendMltReq1Packet
and a
ret
.isSGB
call SendMltReq1Packet
scf
ret
SendMltReq1Packet:
ld hl, MltReq1Packet
call SendPackets
jp Wait7000
Wait7000:
; Each loop takes 9 cycles so this routine actually waits 63000 cycles.
ld de, 7000
.loop
nop
nop
nop
dec de
ld a, d
or e
jr nz, .loop
ret
; Copy graphics data to the SNES
; @param de The graphics data
; @param hl The packet to send
CopyGfxToSnes::
di
push hl
; Disable LCD during transfer
ld a, 0
ld [rLCDC], a
; Transfer background palette value
ld a, $e4
ldh [rBGP], a
ld hl, _VRAM8800
ld a, [copyingSGBTileDataState]
cp SGB_TRANSFER_TYPE_TILE_MAP
jr z, .copyingTileMap
cp SGB_TRANSFER_TYPE_PALETTES
jr z, .copyingPalettes
call CopySGBBorderTiles
jr .next
.copyingTileMap
; Copy 4K data from VRAM to SNES
ld bc, BorderPalettes.endTileMap - BorderPalettes
call DeobfuscateSgbFrame
ld bc, BorderPalettes.end - BorderPalettes.endTileMap
call MemCpy
jr .next
.copyingPalettes
ld bc, $1000
call MemCpy
.next
; Copy visible background to SNES
ld hl, _SCRN0
ld de, $c ; Background additional width
ld a, $80 ; VRAM address of the first tile
ld c, $d ; Nb rows
.loop
ld b, $14 ; Visible background width
.innerLoop
ld [hli], a ; Tile set
inc a
dec b
jr nz, .innerLoop
add hl, de ; Next visible background
dec c
jr nz, .loop
; Turn on LCD to start transfer
ld a, LCDC_SGB_TRAN
ldh [rLCDC], a
; Send packet
pop hl
call SendPackets
; Restore background palette
xor a
ldh [rBGP], a
ei
ret
; SGB tile data is stored in a 4BPP planar format.
; Each tile is 32 bytes. The first 16 bytes contain bit planes 1 and 2, while
; the second 16 bytes contain bit planes 3 and 4.
; This function converts 2BPP planar data into this format by mapping
; 2BPP colors 0-3 to 4BPP colors 0-3. 4BPP colors 4-15 are not used.
; @param de Graphics data
; @param hl Destination
CopySGBBorderTiles::
ld b, 128
.tileLoop
; Copy bit planes 1 and 2 of the tile data.
ld c, 16
.copyLoop
ld a, [de]
ld [hli], a
inc de
dec c
jr nz, .copyLoop
; Zero bit planes 3 and 4.
ld c, 16
xor a
.zeroLoop
ld [hli], a
dec c
jr nz, .zeroLoop
dec b
jr nz, .tileLoop
ret
; Copies a block of memory somewhere else
; @param de Pointer to beginning of block to copy
; @param hl Pointer to where to copy (bytes will be written from there onwards)
; @param bc Amount of bytes to copy (0 causes 65536 bytes to be copied)
; @return de Pointer to byte after last copied one
; @return hl Pointer to byte after last written one
; @return bc 0
; @return a 0
; @return f Z set, C reset
DeobfuscateSgbFrame:
; Increment B if C is non-zero
dec bc
inc b
inc c
.loop
ld a, [de]
push hl
; XOR with a byte of the key
; Here we fetch the index of the key
ld hl, sgbObfuscationKey
xor a
ld a, e
and $0F
; The following code adds A to HL because the arch is kinda cursed
add a, l ; A = A+L
ld l, a ; L = A+L
adc a, h ; A = A+L+H+carry
sub l ; A = H+carry
ld h, a ; H = H+carry
; Load the key byte
ld a, [hl]
; Fetch the data byte and deobfuscate it
ld l, a
ld a, [de]
xor l
pop hl
ld [hli], a
inc de
dec c
jr nz, .loop
dec b
jr nz, .loop
ret
LoadSaveData:
; Drop straight into the input menu if there is not a valid save
ld a, GAMESTATE_INPUT_MENU
ld [gameState], a
; Check if the save is fully initialized
ld a, [saveIsInitialized]
cp 0
jr z, .dontLoad
; Copy the name and flag to RAM
ld a, [playerNameLengthSram]
ld [playerNameLengthRam], a
ld a, [flagLengthSram]
ld [flagLengthRam], a
ld de, playerNameSram
ld hl, playerNameRam
ld bc, playerNameRam.end - playerNameRam
call MemCpy
ld de, flagSram
ld hl, flagRam
ld bc, flagRam.end - flagRam
call MemCpy
; Drop into the standard menu if there is a save
ld a, GAMESTATE_MENU
ld [gameState], a
.dontLoad
ret
oamDmaROM::
ld a, HIGH(shadowOAM)
ldh [rDMA], a
ld a, 40; Wait for 160 cycles
.wait
dec a
jr nz, .wait
ret
.end
sgbObfuscationKey:
DB $7c, $6b, $87, $45, $23, $db, $65, $99, $11, $ae, $f3, $a7, $42, $b9, $48, $02
cgbBackgroundPalette::
; Defaults to a greyscale palette
.bg0
DW $FFFF, $0279, $0013, $0000
.bg1 ; base overworld palette (red mushroom)
DW $ABAB, $7fff, $001f, $0000
.bg2 ; palette used in the serial screen
DW $ABAB, $0279, $4C00, $0000
.bg3 ; alternate overworld palette (blue mushroom)
DW $ABAB, $7fff, $7c03, $4207
.bg4 ; flag
DW $0000, $7fff, $ABAB, $0000
.bg5 ; orange mushroom
DW $ABAB, $7fff, $0159, $0000
.bg6 ; pink mushroom
DW $ABAB, $7fff, $523F, $0000
.bg7 ; unsused?
DW $CDCD, $DCDC, $EFEF, $FEFE
.end
cgbObjectPalette::
; Defaults to a greyscale palette
.obj0
DW $FFFF, $5294, $294a, $0000
.obj1
DW $ABAB, $7fff, $001f, $0000
.obj2
DW $8888, $9999, $AAAA, $BBBB
.obj3
DW $CCCC, $DDDD, $EEEE, $FFFF
.obj4
DW $0000, $1010, $2323, $3232
.obj5
DW $4545, $5454, $6767, $7676
.obj6
DW $8989, $9898, $ABAB, $BABA
.obj7
DW $CDCD, $DCDC, $EFEF, $FEFE
.end
expectedSramHeader::
db "Super Myco Boi!!"
.end
SECTION FRAGMENT "INIT", ROMX, ALIGN[8]
spriteTileData::
INCBIN "res/sprite_tiles.bin"
.end
backgroundTileData::
INCBIN "res/background_tiles.bin"
.end
asciiTileData::
INCBIN "res/ascii_tiles.bin"
.end
INCLUDE "sgb_packets.inc"
INCLUDE "sgb_border.inc"
SECTION "OAM DMA Hram", HRAM
OamDma::
ds oamDmaROM.end - oamDmaROM
| 20.311709
| 126
| 0.631144
|
2f624f868dff1ddf850053909236144dd1d701a3
| 556
|
asm
|
Assembly
|
boot/stage1/print.asm
|
wodOS/wodOS
|
60d4cff724cb57da0c6a0361a74ea5c524b34f40
|
[
"BSD-3-Clause"
] | 4
|
2021-12-24T19:10:47.000Z
|
2022-01-20T18:24:19.000Z
|
boot/stage1/print.asm
|
wodOS/wodOS
|
60d4cff724cb57da0c6a0361a74ea5c524b34f40
|
[
"BSD-3-Clause"
] | null | null | null |
boot/stage1/print.asm
|
wodOS/wodOS
|
60d4cff724cb57da0c6a0361a74ea5c524b34f40
|
[
"BSD-3-Clause"
] | null | null | null |
;;
; wodOS Operating System
; Copyright © 2021-2022 wodOS Operating System Developers. All rights reserved.
;
; Use of this source code is governed by a BSD-style license that can be
; found in the LICENSE file.
;
; Contributor(s):
; - Ashwin Paudel <ashwonixer123@gmail.com>
;;
; prints a string to the screen
print:
push si
push ax
.loop:
lodsb
or al, al
jz .exit
mov ah, 0x0e
mov bh, 0
int 0x10
jmp .loop
.exit:
pop ax
pop si
ret
| 17.375
| 80
| 0.564748
|
29490f75ce52c79c0358021369de15cd3fd4ffe2
| 1,929
|
asm
|
Assembly
|
src/x86/handlers.asm
|
xiaobfly/ucxxrt
|
3f3e4b732bbdb0c6b89a9b36f0f4e3dec041f822
|
[
"MIT"
] | 1
|
2020-06-22T16:36:25.000Z
|
2020-06-22T16:36:25.000Z
|
src/x86/handlers.asm
|
c3358/ucxxrt
|
666aedf4a7f97ee8ebf25334e609ffb4dd14505c
|
[
"MIT"
] | null | null | null |
src/x86/handlers.asm
|
c3358/ucxxrt
|
666aedf4a7f97ee8ebf25334e609ffb4dd14505c
|
[
"MIT"
] | null | null | null |
;/*
; * PROJECT: Universal C++ RunTime (UCXXRT)
; * FILE: handlers.asm
; * DATA: 2020/02/28
; *
; * PURPOSE: Universal C++ RunTime
; *
; * LICENSE: Relicensed under The MIT License from The CC BY 4.0 License
; *
; * DEVELOPER: MiroKaku (miro.kaku AT Outlook.com)
; */
;***
;lowhelpr.asm
;
; Copyright (C) Microsoft Corporation. All rights reserved.
;
;Purpose:
; Contains _CallSettingFrame(), which must be in asm for NLG purposes.
;
;Notes:
;
;*******************************************************************************
title handlers.asm
.xlist
include vcruntime.inc
.list
PUBLIC _CallSettingFrame
CODESEG
;////////////////////////////////////////////////////////////////////////////
;/
;/ _CallSettingFrame - sets up EBP and calls the specified funclet. Restores
;/ EBP on return.
;/
;/ Return value is return value of funclet (whatever is in EAX).
;/
public _CallSettingFrame
_CallSettingFrame proc stdcall, funclet:IWORD, pRN:IWORD, dwInCode:DWORD
; FPO = 0 dwords locals allocated in prolog
; 3 dword parameters
; 8 bytes in prolog
; 4 registers saved (includes locals to work around debugger bug)
; 1 EBP is used
; 0 frame type = FPO
.FPO (0,3,8,4,1,0)
sub esp,4
push ebx
push ecx
mov eax, pRN
add eax, 0Ch ; sizeof(EHRegistrationNode) -- assumed to equal 0Ch
mov dword ptr [ebp-4],eax
mov eax,funclet
push ebp ; Save our frame pointer
push dwInCode
mov ecx,dwInCode
mov ebp,dword ptr [ebp-4] ; Load target frame pointer
push esi
push edi
call eax ; Call the funclet
add esp, 0Ch
pop ebp ; Restore our frame pointer
pop ecx
pop ebx
ret 0Ch
_CallSettingFrame ENDP
END
| 24.730769
| 88
| 0.539139
|
d625431a940c7dbf6a15d7490de58c3e20cc6295
| 248
|
asm
|
Assembly
|
quiz_5.asm
|
William0Friend/my_masm
|
e8073266c03c01424ad84b9ed9cf13e9da1eabb1
|
[
"Apache-2.0"
] | null | null | null |
quiz_5.asm
|
William0Friend/my_masm
|
e8073266c03c01424ad84b9ed9cf13e9da1eabb1
|
[
"Apache-2.0"
] | null | null | null |
quiz_5.asm
|
William0Friend/my_masm
|
e8073266c03c01424ad84b9ed9cf13e9da1eabb1
|
[
"Apache-2.0"
] | null | null | null |
;Quiz 5
include Irvine32.inc
.data
store DWORD ?
.code
main proc
mov eax,0
mov ecx,10
Lout:
push ecx
mov ecx, 5
Lin:
inc eax
mov store,eax
loop Lin
pop ecx
loop Lout
invoke ExitProcess,0
main endp
end main
| 9.538462
| 22
| 0.629032
|
20e543ac57dd94f86d9782c5e6a87d9c2fb5bb38
| 2,564
|
asm
|
Assembly
|
c-vs-asm/build/02-const.asm
|
willbr/gameboy-tests
|
a0d9f68f5a4898067b7993f690d8d4ca6de831c5
|
[
"MIT"
] | null | null | null |
c-vs-asm/build/02-const.asm
|
willbr/gameboy-tests
|
a0d9f68f5a4898067b7993f690d8d4ca6de831c5
|
[
"MIT"
] | null | null | null |
c-vs-asm/build/02-const.asm
|
willbr/gameboy-tests
|
a0d9f68f5a4898067b7993f690d8d4ca6de831c5
|
[
"MIT"
] | null | null | null |
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 4.0.0 #11528 (MINGW64)
;--------------------------------------------------------
; MODULE 02_const
.optsdcc -mgbz80
; Generated using the rgbds tokens.
; We have to define these here as sdcc doesn't make them global by default
GLOBAL __mulschar
GLOBAL __muluchar
GLOBAL __mulint
GLOBAL __divschar
GLOBAL __divuchar
GLOBAL __divsint
GLOBAL __divuint
GLOBAL __modschar
GLOBAL __moduchar
GLOBAL __modsint
GLOBAL __moduint
GLOBAL __mullong
GLOBAL __modslong
GLOBAL __divslong
GLOBAL banked_call
GLOBAL banked_ret
;--------------------------------------------------------
; Public variables in this module
;--------------------------------------------------------
GLOBAL _variable
GLOBAL _global_i
;--------------------------------------------------------
; special function registers
;--------------------------------------------------------
;--------------------------------------------------------
; ram data
;--------------------------------------------------------
SECTION "src/02-const.c_DATA",BSS
;--------------------------------------------------------
; absolute external ram data
;--------------------------------------------------------
SECTION "DABS (ABS)",CODE
;--------------------------------------------------------
; global & static initialisations
;--------------------------------------------------------
SECTION "HOME",CODE
SECTION "GSINIT",CODE
SECTION "GSFINAL",CODE
SECTION "GSINIT",CODE
;--------------------------------------------------------
; Home
;--------------------------------------------------------
SECTION "src/02-const.c_HOME",HOME
SECTION "src/02-const.c_HOME",HOME
;--------------------------------------------------------
; code
;--------------------------------------------------------
SECTION "src/02-const.c_CODE",CODE
;src/02-const.c:3: void variable(void)
; ---------------------------------
; Function variable
; ---------------------------------
_variable::
dec sp
;src/02-const.c:5: volatile unsigned char local_j = 123;
ld hl, [sp+0]
ld [hl], $7B
;src/02-const.c:7: ++local_j;
inc [hl]
;src/02-const.c:9: local_j = global_i;
ld hl, _global_i
ld c, [hl]
ld hl, [sp+0]
ld [hl], c
;src/02-const.c:11: local_j += 1;
ld a, [hl]
inc a
ld [hl], a
;src/02-const.c:13: local_j = global_i;
ld [hl], c
;src/02-const.c:15: return;
.l00101:
;src/02-const.c:16: }
inc sp
ret
_global_i:
DB $05 ; 5
SECTION "src/02-const.c_CODE",CODE
SECTION "CABS (ABS)",CODE
| 28.808989
| 75
| 0.442278
|
ffe8cd8f2935d44474c6eaa693fe1a479940f9f1
| 598
|
asm
|
Assembly
|
oeis/157/A157910.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/157/A157910.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/157/A157910.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A157910: a(n) = 18*n^2 - 1.
; Submitted by Christian Krause
; 17,71,161,287,449,647,881,1151,1457,1799,2177,2591,3041,3527,4049,4607,5201,5831,6497,7199,7937,8711,9521,10367,11249,12167,13121,14111,15137,16199,17297,18431,19601,20807,22049,23327,24641,25991,27377,28799,30257,31751,33281,34847,36449,38087,39761,41471,43217,44999,46817,48671,50561,52487,54449,56447,58481,60551,62657,64799,66977,69191,71441,73727,76049,78407,80801,83231,85697,88199,90737,93311,95921,98567,101249,103967,106721,109511,112337,115199,118097,121031,124001,127007,130049,133127
add $0,1
pow $0,2
mul $0,18
sub $0,1
| 66.444444
| 497
| 0.787625
|
9eff048608f37ad95145427a7bb0d55808bea509
| 675
|
asm
|
Assembly
|
oeis/219/A219391.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/219/A219391.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/219/A219391.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A219391: Numbers k such that 21*k + 1 is a square.
; Submitted by Jamie Morken(s1)
; 0,3,8,19,23,40,55,80,88,119,144,183,195,240,275,328,344,403,448,515,535,608,663,744,768,855,920,1015,1043,1144,1219,1328,1360,1475,1560,1683,1719,1848,1943,2080,2120,2263,2368,2519,2563,2720,2835,3000,3048,3219,3344,3523,3575,3760,3895,4088,4144,4343,4488,4695,4755,4968,5123,5344,5408,5635,5800,6035,6103,6344,6519,6768,6840,7095,7280,7543,7619,7888,8083,8360,8440,8723,8928,9219,9303,9600,9815,10120,10208,10519,10744,11063,11155,11480,11715,12048,12144,12483,12728,13075
mul $0,3
add $0,1
div $0,2
mov $1,10
mul $1,$0
div $0,2
mul $0,6
add $1,2
sub $1,$0
pow $1,2
mov $0,$1
div $0,84
| 39.705882
| 475
| 0.734815
|
418a316348ff9c65671cfa657730cb15fbb1ea65
| 8,155
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2904.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2904.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2904.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x2bd1, %rsi
lea addresses_UC_ht+0x102a1, %rdi
nop
nop
nop
sub %rbx, %rbx
mov $103, %rcx
rep movsq
nop
nop
sub $45104, %r13
lea addresses_WT_ht+0x1a2b1, %r9
xor $25457, %r12
mov $0x6162636465666768, %rcx
movq %rcx, (%r9)
nop
nop
nop
sub %r13, %r13
lea addresses_WT_ht+0x1a7e1, %rbx
nop
nop
nop
sub $50336, %r12
movb $0x61, (%rbx)
add %rsi, %rsi
lea addresses_WT_ht+0x13ce1, %r13
nop
nop
dec %rdi
movb $0x61, (%r13)
nop
nop
nop
nop
nop
and $45540, %rbx
lea addresses_D_ht+0x925, %rsi
nop
nop
nop
dec %rdi
vmovups (%rsi), %ymm7
vextracti128 $0, %ymm7, %xmm7
vpextrq $1, %xmm7, %r13
nop
nop
nop
nop
xor %r12, %r12
lea addresses_D_ht+0x40a1, %rdi
nop
and %rbx, %rbx
mov (%rdi), %r12d
nop
nop
add %rbx, %rbx
lea addresses_UC_ht+0x1ca1, %rsi
lea addresses_WC_ht+0x4d7b, %rdi
clflush (%rdi)
nop
nop
sub $61930, %r12
mov $30, %rcx
rep movsw
nop
nop
and %r9, %r9
lea addresses_WT_ht+0xe8e1, %rsi
nop
and $18443, %rbx
mov $0x6162636465666768, %r9
movq %r9, %xmm0
movups %xmm0, (%rsi)
nop
nop
xor $47464, %r12
lea addresses_WC_ht+0x8b49, %rsi
lea addresses_A_ht+0xf4a1, %rdi
nop
nop
nop
nop
xor %rbx, %rbx
mov $58, %rcx
rep movsb
nop
nop
xor $49171, %r13
lea addresses_normal_ht+0x1afa1, %rsi
lea addresses_D_ht+0x634f, %rdi
nop
sub $589, %rax
mov $44, %rcx
rep movsq
nop
nop
nop
lfence
lea addresses_WC_ht+0x17d61, %rsi
lea addresses_WT_ht+0xd8a1, %rdi
nop
nop
sub %rax, %rax
mov $123, %rcx
rep movsq
nop
nop
nop
nop
nop
add %rbx, %rbx
lea addresses_WC_ht+0x100a1, %rdi
dec %rsi
mov (%rdi), %r12w
nop
nop
nop
xor %rdi, %rdi
lea addresses_A_ht+0xe6a1, %rsi
lea addresses_WC_ht+0x1c31, %rdi
nop
cmp %r12, %r12
mov $32, %rcx
rep movsq
xor $58223, %rdi
lea addresses_A_ht+0x9251, %rsi
lea addresses_UC_ht+0x697d, %rdi
nop
nop
and $41835, %rbx
mov $92, %rcx
rep movsw
nop
nop
nop
nop
nop
sub %r12, %r12
lea addresses_UC_ht+0x16fa1, %rbx
nop
and $56822, %r13
vmovups (%rbx), %ymm1
vextracti128 $0, %ymm1, %xmm1
vpextrq $0, %xmm1, %r12
nop
cmp $61617, %r12
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r9
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r13
push %r8
push %r9
push %rbx
push %rdi
// Store
lea addresses_normal+0x15881, %rbx
cmp %r10, %r10
movl $0x51525354, (%rbx)
// Exception!!!
nop
mov (0), %r8
nop
sub $43692, %rbx
// Faulty Load
lea addresses_normal+0xb4a1, %r11
clflush (%r11)
nop
nop
nop
xor $18189, %rdi
mov (%r11), %r13
lea oracles, %r11
and $0xff, %r13
shlq $12, %r13
mov (%r11,%r13,1), %r13
pop %rdi
pop %rbx
pop %r9
pop %r8
pop %r13
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_normal', 'same': False, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_normal', 'same': False, 'size': 4, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_normal', 'same': True, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': True}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': True}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 8, 'congruent': 4, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 1, 'congruent': 5, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_WT_ht', 'same': True, 'size': 1, 'congruent': 6, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_D_ht', 'same': False, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'same': False, 'size': 4, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 16, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': True}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 2, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 32, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'34': 21829}
34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
*/
| 34.555085
| 2,999
| 0.657143
|
1764f35ce9d1f732e90c34dc2172bf8806331bb6
| 2,083
|
asm
|
Assembly
|
sprite.asm
|
bsutherland/c64lib
|
881d47166a01e3988a43f571c5eab9673a367289
|
[
"MIT"
] | 1
|
2021-02-02T15:20:38.000Z
|
2021-02-02T15:20:38.000Z
|
sprite.asm
|
bsutherland/c64lib
|
881d47166a01e3988a43f571c5eab9673a367289
|
[
"MIT"
] | null | null | null |
sprite.asm
|
bsutherland/c64lib
|
881d47166a01e3988a43f571c5eab9673a367289
|
[
"MIT"
] | 1
|
2021-03-24T08:36:05.000Z
|
2021-03-24T08:36:05.000Z
|
#importonce
#import "zeropage.asm"
.const SPRITE_POINTER_BASE = $07f8
.const SPRITE_COORD_X_BASE = $d000
.const SPRITE_COORD_Y_BASE = $d001
.const SPRITE_COORD_X_BIT8 = $d010
.const SPRITE_ENABLE = $d015
.const SPRITE_CONTROL_2 = $d016
.const SPRITE_DOUBLE_HEIGHT = $d017
.const SPRITE_DOUBLE_WIDTH = $d01d
.const SPRITE_MODE_MULTICOLOR = $d01c
.const SPRITE_INTER_COLLISION = $d01e
.const SPRITE_BACKGROUND_COLLISION = $d01f
.const SPRITE_COLOR_SHARED_1 = $d025
.const SPRITE_COLOR_SHARED_2 = $d026
.const SPRITE_COLORS_BASE = $d027
.const SPRITE_MASK_0 = $1
.const SPRITE_MASK_1 = $2
.const SPRITE_MASK_2 = $4
.const SPRITE_MASK_3 = $8
.const SPRITE_SIZE_BYTES = 64
.const SPRITE_WIDTH = 24
.const SPRITE_HEIGHT = 21
.const SPRITE_CANVAS_WIDTH = 512
.const SPRITE_CANVAS_HEIGHT = 256
.macro sprite_enable(i) {
lda #(1 << i)
ora SPRITE_ENABLE
sta SPRITE_ENABLE
}
.macro sprite_multicolor_enable(i) {
lda #(1 << i)
ora SPRITE_MODE_MULTICOLOR
sta SPRITE_MODE_MULTICOLOR
}
.macro sprite_multicolor_shared_1(color) {
lda #color
sta SPRITE_COLOR_SHARED_1
}
.macro sprite_multicolor_shared_2(color) {
lda #color
sta SPRITE_COLOR_SHARED_2
}
.macro sprite_color_foreground(i, color) {
lda #color
sta SPRITE_COLORS_BASE + i
}
.macro sprite_addr(i, addr) {
sprite_addr_div64(i, addr/64)
}
.macro sprite_addr_div64(i, idx) {
lda #idx
sta SPRITE_POINTER_BASE + i
}
.macro sprite_x_const(i, x) {
lda #<x
sta SPRITE_COORD_X_BASE + 2*i
lda SPRITE_COORD_X_BIT8
ora #(>x << i)
sta SPRITE_COORD_X_BIT8
}
.macro sprite_x(i, x) {
lda x
sta SPRITE_COORD_X_BASE + 2*i
lda x+1
beq msb_zero
lda #(1 << i)
ora SPRITE_COORD_X_BIT8
jmp return
msb_zero:
lda #~(1 << i)
and SPRITE_COORD_X_BIT8
// fall-through
return:
sta SPRITE_COORD_X_BIT8
}
.macro sprite_y_const(i, y) {
lda #y
sta SPRITE_COORD_Y_BASE + 2*i
}
.macro sprite_y(i, y) {
lda y
sta SPRITE_COORD_Y_BASE + 2*i
}
.macro sprite_position(i, x, y) {
sprite_x(i, x)
sprite_y(i, y)
}
| 18.765766
| 42
| 0.703313
|
0abc634760c5bb39368921045664744a86f3594b
| 1,892
|
asm
|
Assembly
|
PIC/mikroC/Projects/PIC18F4550/Interrupt.asm
|
UdayanSinha/Code_Blocks
|
43c010dcfb587942b6e6f8ba72b93862042afa1d
|
[
"MIT"
] | 3
|
2016-10-30T05:54:44.000Z
|
2021-05-17T20:24:42.000Z
|
PIC/mikroC/Projects/PIC18F4550/Interrupt.asm
|
UdayanSinha/Code_Blocks
|
43c010dcfb587942b6e6f8ba72b93862042afa1d
|
[
"MIT"
] | null | null | null |
PIC/mikroC/Projects/PIC18F4550/Interrupt.asm
|
UdayanSinha/Code_Blocks
|
43c010dcfb587942b6e6f8ba72b93862042afa1d
|
[
"MIT"
] | 1
|
2018-10-04T08:20:25.000Z
|
2018-10-04T08:20:25.000Z
|
_main:
;Interrupt.c,3 :: void main(void)
;Interrupt.c,5 :: TRISD=0xFE; //RD0 is output
MOVLW 254
MOVWF TRISD+0
;Interrupt.c,6 :: T0CON.B6=1; //timer configured in 8-bit mode
BSF T0CON+0, 6
;Interrupt.c,7 :: T0CON.B5=0; //clock source is internal clock
BCF T0CON+0, 5
;Interrupt.c,8 :: TMR0L=0xE0; //load timer register
MOVLW 224
MOVWF TMR0L+0
;Interrupt.c,9 :: T0CON.B7=1; //enable timer 0
BSF T0CON+0, 7
;Interrupt.c,10 :: RCON.B7=1; //enable interrupt priority
BSF RCON+0, 7
;Interrupt.c,11 :: INTCON2.B2=1; //timer 0 interrupt is of high priority
BSF INTCON2+0, 2
;Interrupt.c,12 :: INTCON=0xE0; //enable high and low priority interrupts, enable timer 0 interrupt, clear timer 0 interrupt flag
MOVLW 224
MOVWF INTCON+0
;Interrupt.c,14 :: while(1);
L_main0:
GOTO L_main0
;Interrupt.c,15 :: }
L_end_main:
GOTO $+0
; end of _main
_interrupt:
;Interrupt.c,18 :: void interrupt(void)
;Interrupt.c,20 :: t0_isr(); //call timer 0 ISR
CALL _t0_isr+0, 0
;Interrupt.c,21 :: }
L_end_interrupt:
L__interrupt4:
RETFIE 1
; end of _interrupt
_t0_isr:
;Interrupt.c,24 :: void t0_isr(void)
;Interrupt.c,26 :: T0CON.B7=0; //turn off timer
BCF T0CON+0, 7
;Interrupt.c,27 :: INTCON.B1=0; //clear interrupt flag
BCF INTCON+0, 1
;Interrupt.c,28 :: PORTD.B0=~PORTD.B0; //toggle RD0
BTG PORTD+0, 0
;Interrupt.c,29 :: TMR0L=0xE0; //load timer register
MOVLW 224
MOVWF TMR0L+0
;Interrupt.c,30 :: T0CON.B7=1; //turn on timer
BSF T0CON+0, 7
;Interrupt.c,31 :: }
L_end_t0_isr:
RETURN 0
; end of _t0_isr
| 31.016393
| 140
| 0.554968
|
87c99db75b3117bb9b321a5afdc44b1a1baede35
| 639
|
asm
|
Assembly
|
oeis/202/A202563.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/202/A202563.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/202/A202563.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A202563: Numbers which are both decagonal and pentagonal.
; Submitted by Jon Maiga
; 1,12376,118837251,1141075274626,10956604668124501,105205316882256186876,1010181441746819238261751,9699762098447641443533149126,93137114659112811393986059649001,894302565257039116557412701216561376,8587093138460974938071465363095362686251,82453267421199716098323093859028971296823626,791716265191266535515123409162930819296737773501,7602059495913273852816498876459367867858304804335876,72994974488042990343477486696639441104244623434495310751
mul $0,2
seq $0,54320 ; Expansion of g.f.: (1 + x)/(1 - 10*x + x^2).
pow $0,2
div $0,120
mul $0,125
add $0,1
| 58.090909
| 443
| 0.865415
|
d400881a049aeed215df22dc65fae4d201ef6ee9
| 700
|
asm
|
Assembly
|
oeis/081/A081014.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/081/A081014.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/081/A081014.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A081014: a(n) = Lucas(4*n+1) + 1, or Lucas(2*n)*Lucas(2*n+1).
; Submitted by Jamie Morken(s4)
; 2,12,77,522,3572,24477,167762,1149852,7881197,54018522,370248452,2537720637,17393796002,119218851372,817138163597,5600748293802,38388099893012,263115950957277,1803423556807922,12360848946698172,84722519070079277,580696784543856762,3980154972736918052,27280388024614569597,186982561199565069122,1281597540372340914252,8784200221406821330637,60207804009475408400202,412670427844921037470772,2828485190904971853895197,19386725908489881939795602,132878596168524201724674012,910763447271179530132922477
mov $2,1
lpb $0
sub $0,1
add $1,$2
add $2,$1
lpe
mov $0,$2
mul $0,5
mul $1,$0
mov $0,$1
add $0,2
| 43.75
| 499
| 0.822857
|
568d4fd7cf5663b1cf706f812b7f698ff80c3234
| 640
|
asm
|
Assembly
|
programs/oeis/157/A157366.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/157/A157366.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/157/A157366.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A157366: a(n) = 686*n + 14.
; 700,1386,2072,2758,3444,4130,4816,5502,6188,6874,7560,8246,8932,9618,10304,10990,11676,12362,13048,13734,14420,15106,15792,16478,17164,17850,18536,19222,19908,20594,21280,21966,22652,23338,24024,24710,25396,26082,26768,27454,28140,28826,29512,30198,30884,31570,32256,32942,33628,34314,35000,35686,36372,37058,37744,38430,39116,39802,40488,41174,41860,42546,43232,43918,44604,45290,45976,46662,47348,48034,48720,49406,50092,50778,51464,52150,52836,53522,54208,54894,55580,56266,56952,57638,58324,59010,59696,60382,61068,61754,62440,63126,63812,64498,65184,65870,66556,67242,67928,68614
mul $0,686
add $0,700
| 106.666667
| 586
| 0.803125
|
35cb69e78ffe2037c6fed0f28f4c4e547c0eb9fb
| 552
|
asm
|
Assembly
|
oeis/017/A017264.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/017/A017264.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/017/A017264.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A017264: a(n) = (9*n + 8)^8.
; 16777216,6975757441,208827064576,2251875390625,14048223625216,62259690411361,218340105584896,645753531245761,1677721600000000,3936588805702081,8507630225817856,17181861798319201,32784148919812096,59604644775390625,103953325454500096,174859124550883201,284936905588473856,451447246258894081,697575744100000000,1053960288888713761,1560496482665168896,2268453123948987361,3242931408352297216,4565703233437890625,6338465731314712576,8686550888106661441,11763130845074473216,15753961211814252001
mul $0,9
add $0,8
pow $0,8
| 78.857143
| 492
| 0.889493
|
162cd40efab15407500b27a0d6d727f5164c4b1f
| 222
|
asm
|
Assembly
|
Windows/API/winAPI.asm
|
Gabriel-Lima232/Assembly
|
6c7168f83844658431033de395c7cc0079f32e54
|
[
"MIT"
] | null | null | null |
Windows/API/winAPI.asm
|
Gabriel-Lima232/Assembly
|
6c7168f83844658431033de395c7cc0079f32e54
|
[
"MIT"
] | null | null | null |
Windows/API/winAPI.asm
|
Gabriel-Lima232/Assembly
|
6c7168f83844658431033de395c7cc0079f32e54
|
[
"MIT"
] | null | null | null |
extern _MessageBoxA
global _main
section .data
text db "Eu sou um POP-UP!!",0
title db "Caixa de Texto",0
section .text
_main:
push 0
push title
push text
push 0
call _MessageBoxA
| 15.857143
| 35
| 0.621622
|
ede25ec25c2e50b5e7bbf88f98445519c59578f6
| 78
|
asm
|
Assembly
|
1581/64tass/mfmmacro.asm
|
silverdr/assembly
|
c2851f7033223e089285dce22443b7e219ed4f61
|
[
"Unlicense"
] | 23
|
2015-03-23T15:16:57.000Z
|
2022-03-18T12:43:42.000Z
|
1581/64tass/mfmmacro.asm
|
silverdr/assembly
|
c2851f7033223e089285dce22443b7e219ed4f61
|
[
"Unlicense"
] | null | null | null |
1581/64tass/mfmmacro.asm
|
silverdr/assembly
|
c2851f7033223e089285dce22443b7e219ed4f61
|
[
"Unlicense"
] | 8
|
2016-04-13T11:19:35.000Z
|
2021-12-22T07:39:00.000Z
|
WDTEST .macro
.ifeq * & $03
nop
.endif
.endm
| 13
| 21
| 0.371795
|
fdca8f5aa705aa8d0bbe3f45912b8487c529b9b5
| 89
|
asm
|
Assembly
|
src/arch/x86_64/boot.asm
|
fdidron/lisa
|
3b271191f591d7cbd9a65b67aef4af794e6b896a
|
[
"MIT"
] | null | null | null |
src/arch/x86_64/boot.asm
|
fdidron/lisa
|
3b271191f591d7cbd9a65b67aef4af794e6b896a
|
[
"MIT"
] | null | null | null |
src/arch/x86_64/boot.asm
|
fdidron/lisa
|
3b271191f591d7cbd9a65b67aef4af794e6b896a
|
[
"MIT"
] | null | null | null |
global start
section .text
bits 32
start:
mov dword [0xb8000], 0x2f4b2f4f
hlt
| 11.125
| 33
| 0.685393
|
04028921697f004bb563a2f830bbcc0a811a17b6
| 499
|
asm
|
Assembly
|
oeis/315/A315414.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/315/A315414.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/315/A315414.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A315414: Coordination sequence Gal.6.206.4 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; Submitted by Jon Maiga
; 1,6,11,15,20,25,31,36,41,45,50,56,62,67,71,76,81,87,92,97,101,106,112,118,123,127,132,137,143,148,153,157,162,168,174,179,183,188,193,199,204,209,213,218,224,230,235,239,244,249
mul $0,4
mov $3,$0
sub $0,1
div $0,11
add $0,1
mod $0,2
mov $2,$3
mul $2,6
div $2,22
add $2,$0
add $3,$2
mov $0,$3
| 29.352941
| 179
| 0.699399
|
ac20fe23d8b70d13aee34427e7662a0c635e9911
| 7,509
|
asm
|
Assembly
|
rand_test/rand_test.asm
|
nealvis/nv_c64_util_test
|
e9893f7c2bb0a3b55bd93e02d17cf497f84f625b
|
[
"MIT"
] | null | null | null |
rand_test/rand_test.asm
|
nealvis/nv_c64_util_test
|
e9893f7c2bb0a3b55bd93e02d17cf497f84f625b
|
[
"MIT"
] | null | null | null |
rand_test/rand_test.asm
|
nealvis/nv_c64_util_test
|
e9893f7c2bb0a3b55bd93e02d17cf497f84f625b
|
[
"MIT"
] | null | null | null |
//////////////////////////////////////////////////////////////////////////////
// rand_test.asm
// Copyright(c) 2021 Neal Smith.
// License: MIT. See LICENSE file in root directory.
/////////////////////////////////////////////////////////////////////////////
// This program tests the code in the file nv_rand_macs.asm in the
// nv_c64_util repository. The tests need to be manually verified
// by looking at the output.
// import all nv_c64_util macros and data. The data
// will go in default place
#import "../../nv_c64_util/nv_c64_util_macs_and_data.asm"
*=$0800 "BASIC Start"
.byte 0 // first byte should be 0
// location to put a 1 line basic program so we can just
// type run to execute the assembled program.
// will just call assembled program at correct location
// 10 SYS (4096)
// These bytes are a one line basic program that will
// do a sys call to assembly language portion of
// of the program which will be at $1000 or 4096 decimal
// basic line is:
// 10 SYS (4096)
.byte $0E, $08 // Forward address to next basic line
.byte $0A, $00 // this will be line 10 ($0A)
.byte $9E // basic token for SYS
.byte $20, $28, $34, $30, $39, $36, $29 // ASCII for " (4096)"
.byte $00, $00, $00 // end of basic program (addr $080E from above)
*=$0820 "Vars"
.const dollar_sign = $24
// program variables
equal_str: .text@" = \$00"
title_str: .text @"RANDOM\$00" // null terminated string to print
// via the BASIC routine
title_rand_byte_a_str: .text @"TEST RANDOM BYTE A\$00"
title_rand_color_a_str: .text @"TEST RANDOM COLOR A\$00"
hit_anykey_str: .text @"HIT ANY KEY ...\$00"
rand_byte_label_str: .text @"RANDOM BYTE: \$00"
rand_color_label_str: .text @"RANDOM COLOR: \$00"
*=$1000 "Main Start"
.var row = 0
nv_rand_init(true)
nv_screen_clear()
nv_screen_plot_cursor(row++, 33)
nv_screen_print_str(title_str)
test_random_byte_a(0)
test_random_color_a(0)
nv_rand_done()
rts
//////////////////////////////////////////////////////////////////////////////
//
.macro test_random_byte_a(init_row)
{
.var row = init_row
//////////////////////////////////////////////////////////////////////////
nv_screen_plot_cursor(row++, 0)
nv_screen_print_str(title_rand_byte_a_str)
//////////////////////////////////////////////////////////////////////////
.eval row++
/////////////////////////////
nv_screen_plot_cursor(row, 0)
print_rand_byte_a(row++)
/////////////////////////////
nv_screen_plot_cursor(row, 0)
print_rand_byte_a(row++)
/////////////////////////////
nv_screen_plot_cursor(row, 0)
print_rand_byte_a(row++)
/////////////////////////////
nv_screen_plot_cursor(row, 0)
print_rand_byte_a(row++)
/////////////////////////////
nv_screen_plot_cursor(row, 0)
print_rand_byte_a(row++)
/////////////////////////////
nv_screen_plot_cursor(row, 0)
print_rand_byte_a(row++)
/////////////////////////////
nv_screen_plot_cursor(row, 0)
print_rand_byte_a(row++)
/////////////////////////////
nv_screen_plot_cursor(row, 0)
print_rand_byte_a(row++)
/////////////////////////////
nv_screen_plot_cursor(row, 0)
print_rand_byte_a(row++)
/////////////////////////////
nv_screen_plot_cursor(row, 0)
print_rand_byte_a(row++)
/////////////////////////////
nv_screen_plot_cursor(row, 0)
print_rand_byte_a(row++)
wait_and_clear_at_row(row)
}
//////////////////////////////////////////////////////////////////////////////
//
.macro test_random_color_a(init_row)
{
.var row = init_row
//////////////////////////////////////////////////////////////////////////
nv_screen_plot_cursor(row++, 0)
nv_screen_print_str(title_rand_color_a_str)
//////////////////////////////////////////////////////////////////////////
.eval row++
/////////////////////////////
nv_screen_plot_cursor(row, 0)
print_rand_color_a(row++)
/////////////////////////////
nv_screen_plot_cursor(row, 0)
print_rand_color_a(row++)
/////////////////////////////
nv_screen_plot_cursor(row, 0)
print_rand_color_a(row++)
/////////////////////////////
nv_screen_plot_cursor(row, 0)
print_rand_color_a(row++)
/////////////////////////////
nv_screen_plot_cursor(row, 0)
print_rand_color_a(row++)
/////////////////////////////
nv_screen_plot_cursor(row, 0)
print_rand_color_a(row++)
/////////////////////////////
nv_screen_plot_cursor(row, 0)
print_rand_color_a(row++)
/////////////////////////////
nv_screen_plot_cursor(row, 0)
print_rand_color_a(row++)
/////////////////////////////
nv_screen_plot_cursor(row, 0)
print_rand_color_a(row++)
/////////////////////////////
nv_screen_plot_cursor(row, 0)
print_rand_color_a(row++)
/////////////////////////////
nv_screen_plot_cursor(row, 0)
print_rand_color_a(row++)
/////////////////////////////
nv_screen_plot_cursor(row, 0)
print_rand_color_a(row++)
/////////////////////////////
nv_screen_plot_cursor(row, 0)
print_rand_color_a(row++)
/////////////////////////////
nv_screen_plot_cursor(row, 0)
print_rand_color_a(row++)
/////////////////////////////
nv_screen_plot_cursor(row, 0)
print_rand_color_a(row++)
/////////////////////////////
nv_screen_plot_cursor(row, 0)
print_rand_color_a(row++)
/////////////////////////////
nv_screen_plot_cursor(row, 0)
print_rand_color_a(row++)
/////////////////////////////
nv_screen_plot_cursor(row, 0)
print_rand_color_a(row++)
/////////////////////////////
nv_screen_plot_cursor(row, 0)
print_rand_color_a(row++)
wait_and_clear_at_row(row)
}
/////////////////////////////////////////////////////////////////////////////
// wait for key then clear screen when its detected
.macro wait_and_clear_at_row(init_row)
{
.var row = init_row
.eval row++
nv_screen_plot_cursor(row++, 0)
nv_screen_print_str(hit_anykey_str)
nv_key_wait_any_key()
nv_screen_clear()
.eval row=0
nv_screen_plot_cursor(row++, 33)
nv_screen_print_str(title_str)
}
//////////////////////////////////////////////////////////////////////////////
// Print macros
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
// inline macro to print the random number generated
.macro print_rand_byte_a(row)
{
nv_screen_print_str(rand_byte_label_str)
nv_screen_plot_cursor_col(15)
nv_rand_byte_a(true)
nv_screen_print_hex_byte_a(true)
}
//////////////////////////////////////////////////////////////////////////////
// inline macro to print the random number generated
.macro print_rand_color_a(row)
{
nv_screen_print_str(rand_color_label_str)
nv_screen_plot_cursor_col(15)
nv_rand_color_a(true)
sta scratch_byte
nv_screen_print_hex_byte_a(true)
ldx scratch_byte
lda #224
nv_screen_poke_color_char_xa(row, 20)
nv_screen_poke_color_char_xa(row, 21)
nv_screen_poke_color_char_xa(row, 22)
nv_screen_poke_color_char_xa(row, 23)
nv_screen_poke_color_char_xa(row, 24)
}
| 27.505495
| 80
| 0.495006
|
ac70f651fd5ddaccdf91111c994d0b6439c130a8
| 1,357
|
asm
|
Assembly
|
Source/Assembly/bootloader.asm
|
vitorfeliper/GGOS
|
7050c06b2bb9d9482bae2fa23c5deb174f636b4b
|
[
"MIT"
] | null | null | null |
Source/Assembly/bootloader.asm
|
vitorfeliper/GGOS
|
7050c06b2bb9d9482bae2fa23c5deb174f636b4b
|
[
"MIT"
] | null | null | null |
Source/Assembly/bootloader.asm
|
vitorfeliper/GGOS
|
7050c06b2bb9d9482bae2fa23c5deb174f636b4b
|
[
"MIT"
] | null | null | null |
%include "D:/GGOS/Source/Assembly/settings.asm"
[ORG BOOTADD]
;mov ax, 0x4F02
;mov bx, 0x0115
mov ah, 0
mov al, 03
int 0x10
;
;push bp
;mov ah, 06
;mov al, 0
;mov bh, 0
;xor cx, cx
;mov dh, 25
;mov dl, 80
;int 10h
;pop bp
push word 0x3F8
call initSerial
push word 0
push word 32
push word 0Ah
push word title
call printsAt
push word 4
push word 21
push word 0Fh
push word headerPart
call printsAt
push word 5
push word 21
push word 0Fh
push word headerLine
call printsAt
push word 20
push word 21
push word 0Fh
push word msgInfo
call printsAt
;push word 0Eh
;push word msg
;call prints
;push word msg
;push word tgt
;call strcpy
;push word tgt
;push word 0x3F8
;call WriteSerialSB
;push word decstr
;push word 32767
;call itoa
;push word decstr
;push word 0x3F8
;call WriteSerialSB
hang:
mov ax, 1
int 16h
jnz hang
push ax
push word COM1
call WriteSerialB
jmp hang
%include "D:/GGOS/Source/Assembly/serial.asm"
%include "D:/GGOS/Source/Assembly/string.asm"
%include "D:/GGOS/Source/Assembly/stdlib.asm"
%include "D:/GGOS/Source/Assembly/stdio.asm"
title: db "GGOS BOOTLOADER", 0
headerPart: db "Opcao Num Disco Num Part. Tipo Tamanho", 0
headerLine: db "_____ ___ _____ ___ _____ ____ _______", 0
msgInfo: db ">", 0
| 15.964706
| 58
| 0.673545
|
2d6932ab4369a2948397568d0f74180e2d552417
| 84,960
|
asm
|
Assembly
|
target/cos_117/disasm/iop_overlay1/UCRD.asm
|
jrrk2/cray-sim
|
52c9639808d6890517092637b188282c00cce4f7
|
[
"BSL-1.0"
] | 49
|
2020-10-09T12:29:16.000Z
|
2022-03-12T02:33:35.000Z
|
target/cos_117/disasm/iop_overlay1/UCRD.asm
|
jrrk2/cray-sim
|
52c9639808d6890517092637b188282c00cce4f7
|
[
"BSL-1.0"
] | 1
|
2021-12-29T15:59:25.000Z
|
2021-12-29T15:59:25.000Z
|
target/cos_117/disasm/iop_overlay1/UCRD.asm
|
jrrk2/cray-sim
|
52c9639808d6890517092637b188282c00cce4f7
|
[
"BSL-1.0"
] | 6
|
2021-04-12T06:10:32.000Z
|
2022-02-08T23:11:19.000Z
|
0x0000 (0x000000) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0001 (0x000002) 0x291A- f:00024 d: 282 | OR[282] = A
0x0002 (0x000004) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0003 (0x000006) 0x291B- f:00024 d: 283 | OR[283] = A
0x0004 (0x000008) 0x2118- f:00020 d: 280 | A = OR[280]
0x0005 (0x00000A) 0x140A- f:00012 d: 10 | A = A + 10 (0x000A)
0x0006 (0x00000C) 0x2908- f:00024 d: 264 | OR[264] = A
0x0007 (0x00000E) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0008 (0x000010) 0x291C- f:00024 d: 284 | OR[284] = A
0x0009 (0x000012) 0x2118- f:00020 d: 280 | A = OR[280]
0x000A (0x000014) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x000B (0x000016) 0x2908- f:00024 d: 264 | OR[264] = A
0x000C (0x000018) 0x3108- f:00030 d: 264 | A = (OR[264])
0x000D (0x00001A) 0x291D- f:00024 d: 285 | OR[285] = A
0x000E (0x00001C) 0x211C- f:00020 d: 284 | A = OR[284]
0x000F (0x00001E) 0x8402- f:00102 d: 2 | P = P + 2 (0x0011), A = 0
0x0010 (0x000020) 0x7006- f:00070 d: 6 | P = P + 6 (0x0016)
0x0011 (0x000022) 0x211D- f:00020 d: 285 | A = OR[285]
0x0012 (0x000024) 0x8402- f:00102 d: 2 | P = P + 2 (0x0014), A = 0
0x0013 (0x000026) 0x7003- f:00070 d: 3 | P = P + 3 (0x0016)
0x0014 (0x000028) 0x7C34- f:00076 d: 52 | R = OR[52]
0x0015 (0x00002A) 0x0000- f:00000 d: 0 | PASS
0x0016 (0x00002C) 0x2118- f:00020 d: 280 | A = OR[280]
0x0017 (0x00002E) 0x140C- f:00012 d: 12 | A = A + 12 (0x000C)
0x0018 (0x000030) 0x2908- f:00024 d: 264 | OR[264] = A
0x0019 (0x000032) 0x3108- f:00030 d: 264 | A = (OR[264])
0x001A (0x000034) 0x291E- f:00024 d: 286 | OR[286] = A
0x001B (0x000036) 0x211E- f:00020 d: 286 | A = OR[286]
0x001C (0x000038) 0xB434- f:00132 d: 52 | R = OR[52], A = 0
0x001D (0x00003A) 0x0000- f:00000 d: 0 | PASS
0x001E (0x00003C) 0x211E- f:00020 d: 286 | A = OR[286]
0x001F (0x00003E) 0x1404- f:00012 d: 4 | A = A + 4 (0x0004)
0x0020 (0x000040) 0x291F- f:00024 d: 287 | OR[287] = A
0x0021 (0x000042) 0x311E- f:00030 d: 286 | A = (OR[286])
0x0022 (0x000044) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x0023 (0x000046) 0x1658- f:00013 d: 88 | A = A - 88 (0x0058)
0x0024 (0x000048) 0xB634- f:00133 d: 52 | R = OR[52], A # 0
0x0025 (0x00004A) 0x0000- f:00000 d: 0 | PASS
0x0026 (0x00004C) 0x3118- f:00030 d: 280 | A = (OR[280])
0x0027 (0x00004E) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x0028 (0x000050) 0x2913- f:00024 d: 275 | OR[275] = A
0x0029 (0x000052) 0x311E- f:00030 d: 286 | A = (OR[286])
0x002A (0x000054) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x002B (0x000056) 0x2713- f:00023 d: 275 | A = A - OR[275]
0x002C (0x000058) 0xB634- f:00133 d: 52 | R = OR[52], A # 0
0x002D (0x00005A) 0x0000- f:00000 d: 0 | PASS
0x002E (0x00005C) 0x7E03-0x0361 f:00077 d: 3 | R = OR[3]+865 (0x0361)
0x0030 (0x000060) 0x2119- f:00020 d: 281 | A = OR[281]
0x0031 (0x000062) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x0032 (0x000064) 0x2908- f:00024 d: 264 | OR[264] = A
0x0033 (0x000066) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0034 (0x000068) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x0035 (0x00006A) 0x2920- f:00024 d: 288 | OR[288] = A
0x0036 (0x00006C) 0x2119- f:00020 d: 281 | A = OR[281]
0x0037 (0x00006E) 0x1410- f:00012 d: 16 | A = A + 16 (0x0010)
0x0038 (0x000070) 0x2908- f:00024 d: 264 | OR[264] = A
0x0039 (0x000072) 0x3108- f:00030 d: 264 | A = (OR[264])
0x003A (0x000074) 0x2921- f:00024 d: 289 | OR[289] = A
0x003B (0x000076) 0x2119- f:00020 d: 281 | A = OR[281]
0x003C (0x000078) 0x1411- f:00012 d: 17 | A = A + 17 (0x0011)
0x003D (0x00007A) 0x2908- f:00024 d: 264 | OR[264] = A
0x003E (0x00007C) 0x3108- f:00030 d: 264 | A = (OR[264])
0x003F (0x00007E) 0x2922- f:00024 d: 290 | OR[290] = A
0x0040 (0x000080) 0x2119- f:00020 d: 281 | A = OR[281]
0x0041 (0x000082) 0x1414- f:00012 d: 20 | A = A + 20 (0x0014)
0x0042 (0x000084) 0x2908- f:00024 d: 264 | OR[264] = A
0x0043 (0x000086) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0044 (0x000088) 0x2923- f:00024 d: 291 | OR[291] = A
0x0045 (0x00008A) 0x2119- f:00020 d: 281 | A = OR[281]
0x0046 (0x00008C) 0x1415- f:00012 d: 21 | A = A + 21 (0x0015)
0x0047 (0x00008E) 0x2908- f:00024 d: 264 | OR[264] = A
0x0048 (0x000090) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0049 (0x000092) 0x2924- f:00024 d: 292 | OR[292] = A
0x004A (0x000094) 0x3118- f:00030 d: 280 | A = (OR[280])
0x004B (0x000096) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x004C (0x000098) 0x2913- f:00024 d: 275 | OR[275] = A
0x004D (0x00009A) 0x0400- f:00002 d: 0 | I = 0
0x004E (0x00009C) 0x0000- f:00000 d: 0 | PASS
0x004F (0x00009E) 0x1032- f:00010 d: 50 | A = 50 (0x0032)
0x0050 (0x0000A0) 0x29C3- f:00024 d: 451 | OR[451] = A
0x0051 (0x0000A2) 0x2113- f:00020 d: 275 | A = OR[275]
0x0052 (0x0000A4) 0x29C4- f:00024 d: 452 | OR[452] = A
0x0053 (0x0000A6) 0x2121- f:00020 d: 289 | A = OR[289]
0x0054 (0x0000A8) 0x29C5- f:00024 d: 453 | OR[453] = A
0x0055 (0x0000AA) 0x2122- f:00020 d: 290 | A = OR[290]
0x0056 (0x0000AC) 0x29C6- f:00024 d: 454 | OR[454] = A
0x0057 (0x0000AE) 0x2123- f:00020 d: 291 | A = OR[291]
0x0058 (0x0000B0) 0x29C7- f:00024 d: 455 | OR[455] = A
0x0059 (0x0000B2) 0x2124- f:00020 d: 292 | A = OR[292]
0x005A (0x0000B4) 0x29C8- f:00024 d: 456 | OR[456] = A
0x005B (0x0000B6) 0x7DC2- f:00076 d: 450 | R = OR[450]
0x005C (0x0000B8) 0x211E- f:00020 d: 286 | A = OR[286]
0x005D (0x0000BA) 0x1402- f:00012 d: 2 | A = A + 2 (0x0002)
0x005E (0x0000BC) 0x2908- f:00024 d: 264 | OR[264] = A
0x005F (0x0000BE) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0060 (0x0000C0) 0x2925- f:00024 d: 293 | OR[293] = A
0x0061 (0x0000C2) 0x211E- f:00020 d: 286 | A = OR[286]
0x0062 (0x0000C4) 0x1403- f:00012 d: 3 | A = A + 3 (0x0003)
0x0063 (0x0000C6) 0x2908- f:00024 d: 264 | OR[264] = A
0x0064 (0x0000C8) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0065 (0x0000CA) 0x2926- f:00024 d: 294 | OR[294] = A
0x0066 (0x0000CC) 0x2125- f:00020 d: 293 | A = OR[293]
0x0067 (0x0000CE) 0x1E00-0xFFFF f:00017 d: 0 | A = A - 65535 (0xFFFF)
0x0069 (0x0000D2) 0x8606- f:00103 d: 6 | P = P + 6 (0x006F), A # 0
0x006A (0x0000D4) 0x2126- f:00020 d: 294 | A = OR[294]
0x006B (0x0000D6) 0x1E00-0xFFFF f:00017 d: 0 | A = A - 65535 (0xFFFF)
0x006D (0x0000DA) 0x8602- f:00103 d: 2 | P = P + 2 (0x006F), A # 0
0x006E (0x0000DC) 0x7026- f:00070 d: 38 | P = P + 38 (0x0094)
0x006F (0x0000DE) 0x211E- f:00020 d: 286 | A = OR[286]
0x0070 (0x0000E0) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0071 (0x0000E2) 0x2908- f:00024 d: 264 | OR[264] = A
0x0072 (0x0000E4) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0073 (0x0000E6) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x0074 (0x0000E8) 0x291A- f:00024 d: 282 | OR[282] = A
0x0075 (0x0000EA) 0x2123- f:00020 d: 291 | A = OR[291]
0x0076 (0x0000EC) 0x2725- f:00023 d: 293 | A = A - OR[293]
0x0077 (0x0000EE) 0x8003- f:00100 d: 3 | P = P + 3 (0x007A), C = 0
0x0078 (0x0000F0) 0x8402- f:00102 d: 2 | P = P + 2 (0x007A), A = 0
0x0079 (0x0000F2) 0x7002- f:00070 d: 2 | P = P + 2 (0x007B)
0x007A (0x0000F4) 0x7006- f:00070 d: 6 | P = P + 6 (0x0080)
0x007B (0x0000F6) 0x2125- f:00020 d: 293 | A = OR[293]
0x007C (0x0000F8) 0x2927- f:00024 d: 295 | OR[295] = A
0x007D (0x0000FA) 0x2126- f:00020 d: 294 | A = OR[294]
0x007E (0x0000FC) 0x2928- f:00024 d: 296 | OR[296] = A
0x007F (0x0000FE) 0x7014- f:00070 d: 20 | P = P + 20 (0x0093)
0x0080 (0x000100) 0x2123- f:00020 d: 291 | A = OR[291]
0x0081 (0x000102) 0x2725- f:00023 d: 293 | A = A - OR[293]
0x0082 (0x000104) 0x8402- f:00102 d: 2 | P = P + 2 (0x0084), A = 0
0x0083 (0x000106) 0x700C- f:00070 d: 12 | P = P + 12 (0x008F)
0x0084 (0x000108) 0x2124- f:00020 d: 292 | A = OR[292]
0x0085 (0x00010A) 0x2726- f:00023 d: 294 | A = A - OR[294]
0x0086 (0x00010C) 0x8003- f:00100 d: 3 | P = P + 3 (0x0089), C = 0
0x0087 (0x00010E) 0x8402- f:00102 d: 2 | P = P + 2 (0x0089), A = 0
0x0088 (0x000110) 0x7002- f:00070 d: 2 | P = P + 2 (0x008A)
0x0089 (0x000112) 0x7006- f:00070 d: 6 | P = P + 6 (0x008F)
0x008A (0x000114) 0x2125- f:00020 d: 293 | A = OR[293]
0x008B (0x000116) 0x2927- f:00024 d: 295 | OR[295] = A
0x008C (0x000118) 0x2126- f:00020 d: 294 | A = OR[294]
0x008D (0x00011A) 0x2928- f:00024 d: 296 | OR[296] = A
0x008E (0x00011C) 0x7005- f:00070 d: 5 | P = P + 5 (0x0093)
0x008F (0x00011E) 0x2123- f:00020 d: 291 | A = OR[291]
0x0090 (0x000120) 0x2927- f:00024 d: 295 | OR[295] = A
0x0091 (0x000122) 0x2124- f:00020 d: 292 | A = OR[292]
0x0092 (0x000124) 0x2928- f:00024 d: 296 | OR[296] = A
0x0093 (0x000126) 0x7003- f:00070 d: 3 | P = P + 3 (0x0096)
0x0094 (0x000128) 0x74B6- f:00072 d: 182 | R = P + 182 (0x014A)
0x0095 (0x00012A) 0x7565- f:00072 d: 357 | R = P + 357 (0x01FA)
0x0096 (0x00012C) 0x3118- f:00030 d: 280 | A = (OR[280])
0x0097 (0x00012E) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x0098 (0x000130) 0x2913- f:00024 d: 275 | OR[275] = A
0x0099 (0x000132) 0x0400- f:00002 d: 0 | I = 0
0x009A (0x000134) 0x0000- f:00000 d: 0 | PASS
0x009B (0x000136) 0x1033- f:00010 d: 51 | A = 51 (0x0033)
0x009C (0x000138) 0x29C3- f:00024 d: 451 | OR[451] = A
0x009D (0x00013A) 0x2113- f:00020 d: 275 | A = OR[275]
0x009E (0x00013C) 0x29C4- f:00024 d: 452 | OR[452] = A
0x009F (0x00013E) 0x2121- f:00020 d: 289 | A = OR[289]
0x00A0 (0x000140) 0x29C5- f:00024 d: 453 | OR[453] = A
0x00A1 (0x000142) 0x2122- f:00020 d: 290 | A = OR[290]
0x00A2 (0x000144) 0x29C6- f:00024 d: 454 | OR[454] = A
0x00A3 (0x000146) 0x2127- f:00020 d: 295 | A = OR[295]
0x00A4 (0x000148) 0x29C7- f:00024 d: 455 | OR[455] = A
0x00A5 (0x00014A) 0x2128- f:00020 d: 296 | A = OR[296]
0x00A6 (0x00014C) 0x29C8- f:00024 d: 456 | OR[456] = A
0x00A7 (0x00014E) 0x7DC2- f:00076 d: 450 | R = OR[450]
0x00A8 (0x000150) 0x74F4- f:00072 d: 244 | R = P + 244 (0x019C)
0x00A9 (0x000152) 0x2119- f:00020 d: 281 | A = OR[281]
0x00AA (0x000154) 0x1418- f:00012 d: 24 | A = A + 24 (0x0018)
0x00AB (0x000156) 0x2908- f:00024 d: 264 | OR[264] = A
0x00AC (0x000158) 0x2127- f:00020 d: 295 | A = OR[295]
0x00AD (0x00015A) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x00AE (0x00015C) 0x2119- f:00020 d: 281 | A = OR[281]
0x00AF (0x00015E) 0x1419- f:00012 d: 25 | A = A + 25 (0x0019)
0x00B0 (0x000160) 0x2908- f:00024 d: 264 | OR[264] = A
0x00B1 (0x000162) 0x2128- f:00020 d: 296 | A = OR[296]
0x00B2 (0x000164) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x00B3 (0x000166) 0x2120- f:00020 d: 288 | A = OR[288]
0x00B4 (0x000168) 0x1605- f:00013 d: 5 | A = A - 5 (0x0005)
0x00B5 (0x00016A) 0x8404- f:00102 d: 4 | P = P + 4 (0x00B9), A = 0
0x00B6 (0x00016C) 0x211A- f:00020 d: 282 | A = OR[282]
0x00B7 (0x00016E) 0x8602- f:00103 d: 2 | P = P + 2 (0x00B9), A # 0
0x00B8 (0x000170) 0x7004- f:00070 d: 4 | P = P + 4 (0x00BC)
0x00B9 (0x000172) 0x7E03-0x0400 f:00077 d: 3 | R = OR[3]+1024 (0x0400)
0x00BB (0x000176) 0x7077- f:00070 d: 119 | P = P + 119 (0x0132)
0x00BC (0x000178) 0x2120- f:00020 d: 288 | A = OR[288]
0x00BD (0x00017A) 0x1606- f:00013 d: 6 | A = A - 6 (0x0006)
0x00BE (0x00017C) 0x8402- f:00102 d: 2 | P = P + 2 (0x00C0), A = 0
0x00BF (0x00017E) 0x7007- f:00070 d: 7 | P = P + 7 (0x00C6)
0x00C0 (0x000180) 0x7E03-0x0332 f:00077 d: 3 | R = OR[3]+818 (0x0332)
0x00C2 (0x000184) 0x7E03-0x0400 f:00077 d: 3 | R = OR[3]+1024 (0x0400)
0x00C4 (0x000188) 0x2129- f:00020 d: 297 | A = OR[297]
0x00C5 (0x00018A) 0x2919- f:00024 d: 281 | OR[281] = A
0x00C6 (0x00018C) 0x2119- f:00020 d: 281 | A = OR[281]
0x00C7 (0x00018E) 0x1412- f:00012 d: 18 | A = A + 18 (0x0012)
0x00C8 (0x000190) 0x2908- f:00024 d: 264 | OR[264] = A
0x00C9 (0x000192) 0x3108- f:00030 d: 264 | A = (OR[264])
0x00CA (0x000194) 0x2921- f:00024 d: 289 | OR[289] = A
0x00CB (0x000196) 0x2119- f:00020 d: 281 | A = OR[281]
0x00CC (0x000198) 0x1413- f:00012 d: 19 | A = A + 19 (0x0013)
0x00CD (0x00019A) 0x2908- f:00024 d: 264 | OR[264] = A
0x00CE (0x00019C) 0x3108- f:00030 d: 264 | A = (OR[264])
0x00CF (0x00019E) 0x2922- f:00024 d: 290 | OR[290] = A
0x00D0 (0x0001A0) 0x2119- f:00020 d: 281 | A = OR[281]
0x00D1 (0x0001A2) 0x1416- f:00012 d: 22 | A = A + 22 (0x0016)
0x00D2 (0x0001A4) 0x2908- f:00024 d: 264 | OR[264] = A
0x00D3 (0x0001A6) 0x3108- f:00030 d: 264 | A = (OR[264])
0x00D4 (0x0001A8) 0x2923- f:00024 d: 291 | OR[291] = A
0x00D5 (0x0001AA) 0x2119- f:00020 d: 281 | A = OR[281]
0x00D6 (0x0001AC) 0x1417- f:00012 d: 23 | A = A + 23 (0x0017)
0x00D7 (0x0001AE) 0x2908- f:00024 d: 264 | OR[264] = A
0x00D8 (0x0001B0) 0x3108- f:00030 d: 264 | A = (OR[264])
0x00D9 (0x0001B2) 0x2924- f:00024 d: 292 | OR[292] = A
0x00DA (0x0001B4) 0x3118- f:00030 d: 280 | A = (OR[280])
0x00DB (0x0001B6) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x00DC (0x0001B8) 0x2913- f:00024 d: 275 | OR[275] = A
0x00DD (0x0001BA) 0x0400- f:00002 d: 0 | I = 0
0x00DE (0x0001BC) 0x0000- f:00000 d: 0 | PASS
0x00DF (0x0001BE) 0x1032- f:00010 d: 50 | A = 50 (0x0032)
0x00E0 (0x0001C0) 0x29C3- f:00024 d: 451 | OR[451] = A
0x00E1 (0x0001C2) 0x2113- f:00020 d: 275 | A = OR[275]
0x00E2 (0x0001C4) 0x29C4- f:00024 d: 452 | OR[452] = A
0x00E3 (0x0001C6) 0x2121- f:00020 d: 289 | A = OR[289]
0x00E4 (0x0001C8) 0x29C5- f:00024 d: 453 | OR[453] = A
0x00E5 (0x0001CA) 0x2122- f:00020 d: 290 | A = OR[290]
0x00E6 (0x0001CC) 0x29C6- f:00024 d: 454 | OR[454] = A
0x00E7 (0x0001CE) 0x2123- f:00020 d: 291 | A = OR[291]
0x00E8 (0x0001D0) 0x29C7- f:00024 d: 455 | OR[455] = A
0x00E9 (0x0001D2) 0x2124- f:00020 d: 292 | A = OR[292]
0x00EA (0x0001D4) 0x29C8- f:00024 d: 456 | OR[456] = A
0x00EB (0x0001D6) 0x7DC2- f:00076 d: 450 | R = OR[450]
0x00EC (0x0001D8) 0x745E- f:00072 d: 94 | R = P + 94 (0x014A)
0x00ED (0x0001DA) 0x750D- f:00072 d: 269 | R = P + 269 (0x01FA)
0x00EE (0x0001DC) 0x3118- f:00030 d: 280 | A = (OR[280])
0x00EF (0x0001DE) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x00F0 (0x0001E0) 0x2913- f:00024 d: 275 | OR[275] = A
0x00F1 (0x0001E2) 0x0400- f:00002 d: 0 | I = 0
0x00F2 (0x0001E4) 0x0000- f:00000 d: 0 | PASS
0x00F3 (0x0001E6) 0x1033- f:00010 d: 51 | A = 51 (0x0033)
0x00F4 (0x0001E8) 0x29C3- f:00024 d: 451 | OR[451] = A
0x00F5 (0x0001EA) 0x2113- f:00020 d: 275 | A = OR[275]
0x00F6 (0x0001EC) 0x29C4- f:00024 d: 452 | OR[452] = A
0x00F7 (0x0001EE) 0x2121- f:00020 d: 289 | A = OR[289]
0x00F8 (0x0001F0) 0x29C5- f:00024 d: 453 | OR[453] = A
0x00F9 (0x0001F2) 0x2122- f:00020 d: 290 | A = OR[290]
0x00FA (0x0001F4) 0x29C6- f:00024 d: 454 | OR[454] = A
0x00FB (0x0001F6) 0x2127- f:00020 d: 295 | A = OR[295]
0x00FC (0x0001F8) 0x29C7- f:00024 d: 455 | OR[455] = A
0x00FD (0x0001FA) 0x2128- f:00020 d: 296 | A = OR[296]
0x00FE (0x0001FC) 0x29C8- f:00024 d: 456 | OR[456] = A
0x00FF (0x0001FE) 0x7DC2- f:00076 d: 450 | R = OR[450]
0x0100 (0x000200) 0x2120- f:00020 d: 288 | A = OR[288]
0x0101 (0x000202) 0x1606- f:00013 d: 6 | A = A - 6 (0x0006)
0x0102 (0x000204) 0x8402- f:00102 d: 2 | P = P + 2 (0x0104), A = 0
0x0103 (0x000206) 0x7019- f:00070 d: 25 | P = P + 25 (0x011C)
0x0104 (0x000208) 0x211A- f:00020 d: 282 | A = OR[282]
0x0105 (0x00020A) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x0106 (0x00020C) 0x291A- f:00024 d: 282 | OR[282] = A
0x0107 (0x00020E) 0x211E- f:00020 d: 286 | A = OR[286]
0x0108 (0x000210) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0109 (0x000212) 0x2908- f:00024 d: 264 | OR[264] = A
0x010A (0x000214) 0x3108- f:00030 d: 264 | A = (OR[264])
0x010B (0x000216) 0x1A00-0xFF00 f:00015 d: 0 | A = A & 65280 (0xFF00)
0x010D (0x00021A) 0x251A- f:00022 d: 282 | A = A + OR[282]
0x010E (0x00021C) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x010F (0x00021E) 0x211E- f:00020 d: 286 | A = OR[286]
0x0110 (0x000220) 0x1402- f:00012 d: 2 | A = A + 2 (0x0002)
0x0111 (0x000222) 0x2908- f:00024 d: 264 | OR[264] = A
0x0112 (0x000224) 0x2127- f:00020 d: 295 | A = OR[295]
0x0113 (0x000226) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0114 (0x000228) 0x211E- f:00020 d: 286 | A = OR[286]
0x0115 (0x00022A) 0x1403- f:00012 d: 3 | A = A + 3 (0x0003)
0x0116 (0x00022C) 0x2908- f:00024 d: 264 | OR[264] = A
0x0117 (0x00022E) 0x2128- f:00020 d: 296 | A = OR[296]
0x0118 (0x000230) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0119 (0x000232) 0x7E03-0x0358 f:00077 d: 3 | R = OR[3]+856 (0x0358)
0x011B (0x000236) 0x7017- f:00070 d: 23 | P = P + 23 (0x0132)
0x011C (0x000238) 0x7480- f:00072 d: 128 | R = P + 128 (0x019C)
0x011D (0x00023A) 0x2119- f:00020 d: 281 | A = OR[281]
0x011E (0x00023C) 0x141A- f:00012 d: 26 | A = A + 26 (0x001A)
0x011F (0x00023E) 0x2908- f:00024 d: 264 | OR[264] = A
0x0120 (0x000240) 0x2127- f:00020 d: 295 | A = OR[295]
0x0121 (0x000242) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0122 (0x000244) 0x2119- f:00020 d: 281 | A = OR[281]
0x0123 (0x000246) 0x141B- f:00012 d: 27 | A = A + 27 (0x001B)
0x0124 (0x000248) 0x2908- f:00024 d: 264 | OR[264] = A
0x0125 (0x00024A) 0x2128- f:00020 d: 296 | A = OR[296]
0x0126 (0x00024C) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0127 (0x00024E) 0x2119- f:00020 d: 281 | A = OR[281]
0x0128 (0x000250) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x0129 (0x000252) 0x2908- f:00024 d: 264 | OR[264] = A
0x012A (0x000254) 0x3108- f:00030 d: 264 | A = (OR[264])
0x012B (0x000256) 0x0E09- f:00007 d: 9 | A = A << 9 (0x0009)
0x012C (0x000258) 0x0A01- f:00005 d: 1 | A = A < 1 (0x0001)
0x012D (0x00025A) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x012E (0x00025C) 0x0C0A- f:00006 d: 10 | A = A >> 10 (0x000A)
0x012F (0x00025E) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0130 (0x000260) 0x7E03-0x0400 f:00077 d: 3 | R = OR[3]+1024 (0x0400)
0x0132 (0x000264) 0x7E03-0x03AC f:00077 d: 3 | R = OR[3]+940 (0x03AC)
0x0134 (0x000268) 0x211A- f:00020 d: 282 | A = OR[282]
0x0135 (0x00026A) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x0136 (0x00026C) 0x291A- f:00024 d: 282 | OR[282] = A
0x0137 (0x00026E) 0x2118- f:00020 d: 280 | A = OR[280]
0x0138 (0x000270) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0139 (0x000272) 0x2908- f:00024 d: 264 | OR[264] = A
0x013A (0x000274) 0x3108- f:00030 d: 264 | A = (OR[264])
0x013B (0x000276) 0x1A00-0xFF00 f:00015 d: 0 | A = A & 65280 (0xFF00)
0x013D (0x00027A) 0x251A- f:00022 d: 282 | A = A + OR[282]
0x013E (0x00027C) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x013F (0x00027E) 0x2005- f:00020 d: 5 | A = OR[5]
0x0140 (0x000280) 0x1406- f:00012 d: 6 | A = A + 6 (0x0006)
0x0141 (0x000282) 0x2908- f:00024 d: 264 | OR[264] = A
0x0142 (0x000284) 0x211A- f:00020 d: 282 | A = OR[282]
0x0143 (0x000286) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0144 (0x000288) 0x102A- f:00010 d: 42 | A = 42 (0x002A)
0x0145 (0x00028A) 0x2934- f:00024 d: 308 | OR[308] = A
0x0146 (0x00028C) 0x1134- f:00010 d: 308 | A = 308 (0x0134)
0x0147 (0x00028E) 0x5800- f:00054 d: 0 | B = A
0x0148 (0x000290) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0149 (0x000292) 0x7C09- f:00076 d: 9 | R = OR[9]
0x014A (0x000294) 0x2123- f:00020 d: 291 | A = OR[291]
0x014B (0x000296) 0x2913- f:00024 d: 275 | OR[275] = A
0x014C (0x000298) 0x2124- f:00020 d: 292 | A = OR[292]
0x014D (0x00029A) 0x292A- f:00024 d: 298 | OR[298] = A
0x014E (0x00029C) 0x1800-0x0FFF f:00014 d: 0 | A = 4095 (0x0FFF)
0x0150 (0x0002A0) 0x2B2A- f:00025 d: 298 | OR[298] = A + OR[298]
0x0151 (0x0002A2) 0x8002- f:00100 d: 2 | P = P + 2 (0x0153), C = 0
0x0152 (0x0002A4) 0x2D13- f:00026 d: 275 | OR[275] = OR[275] + 1
0x0153 (0x0002A6) 0x1010- f:00010 d: 16 | A = 16 (0x0010)
0x0154 (0x0002A8) 0x160C- f:00013 d: 12 | A = A - 12 (0x000C)
0x0155 (0x0002AA) 0x5800- f:00054 d: 0 | B = A
0x0156 (0x0002AC) 0x2113- f:00020 d: 275 | A = OR[275]
0x0157 (0x0002AE) 0x4A00- f:00045 d: 0 | A = A < B
0x0158 (0x0002B0) 0x290D- f:00024 d: 269 | OR[269] = A
0x0159 (0x0002B2) 0x100C- f:00010 d: 12 | A = 12 (0x000C)
0x015A (0x0002B4) 0x5800- f:00054 d: 0 | B = A
0x015B (0x0002B6) 0x2113- f:00020 d: 275 | A = OR[275]
0x015C (0x0002B8) 0x4800- f:00044 d: 0 | A = A > B
0x015D (0x0002BA) 0x2913- f:00024 d: 275 | OR[275] = A
0x015E (0x0002BC) 0x212A- f:00020 d: 298 | A = OR[298]
0x015F (0x0002BE) 0x4800- f:00044 d: 0 | A = A > B
0x0160 (0x0002C0) 0x250D- f:00022 d: 269 | A = A + OR[269]
0x0161 (0x0002C2) 0x292A- f:00024 d: 298 | OR[298] = A
0x0162 (0x0002C4) 0x211E- f:00020 d: 286 | A = OR[286]
0x0163 (0x0002C6) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0164 (0x0002C8) 0x2908- f:00024 d: 264 | OR[264] = A
0x0165 (0x0002CA) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0166 (0x0002CC) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x0167 (0x0002CE) 0x292B- f:00024 d: 299 | OR[299] = A
0x0168 (0x0002D0) 0x212A- f:00020 d: 298 | A = OR[298]
0x0169 (0x0002D2) 0x272B- f:00023 d: 299 | A = A - OR[299]
0x016A (0x0002D4) 0x8003- f:00100 d: 3 | P = P + 3 (0x016D), C = 0
0x016B (0x0002D6) 0x8402- f:00102 d: 2 | P = P + 2 (0x016D), A = 0
0x016C (0x0002D8) 0x7002- f:00070 d: 2 | P = P + 2 (0x016E)
0x016D (0x0002DA) 0x702E- f:00070 d: 46 | P = P + 46 (0x019B)
0x016E (0x0002DC) 0x212A- f:00020 d: 298 | A = OR[298]
0x016F (0x0002DE) 0x272B- f:00023 d: 299 | A = A - OR[299]
0x0170 (0x0002E0) 0x8420- f:00102 d: 32 | P = P + 32 (0x0190), A = 0
0x0171 (0x0002E2) 0x7E03-0x03DD f:00077 d: 3 | R = OR[3]+989 (0x03DD)
0x0173 (0x0002E6) 0x211F- f:00020 d: 287 | A = OR[287]
0x0174 (0x0002E8) 0x1402- f:00012 d: 2 | A = A + 2 (0x0002)
0x0175 (0x0002EA) 0x2908- f:00024 d: 264 | OR[264] = A
0x0176 (0x0002EC) 0x212D- f:00020 d: 301 | A = OR[301]
0x0177 (0x0002EE) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0178 (0x0002F0) 0x211F- f:00020 d: 287 | A = OR[287]
0x0179 (0x0002F2) 0x1403- f:00012 d: 3 | A = A + 3 (0x0003)
0x017A (0x0002F4) 0x2908- f:00024 d: 264 | OR[264] = A
0x017B (0x0002F6) 0x212E- f:00020 d: 302 | A = OR[302]
0x017C (0x0002F8) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x017D (0x0002FA) 0x1027- f:00010 d: 39 | A = 39 (0x0027)
0x017E (0x0002FC) 0x2934- f:00024 d: 308 | OR[308] = A
0x017F (0x0002FE) 0x211C- f:00020 d: 284 | A = OR[284]
0x0180 (0x000300) 0x2935- f:00024 d: 309 | OR[309] = A
0x0181 (0x000302) 0x211D- f:00020 d: 285 | A = OR[285]
0x0182 (0x000304) 0x252B- f:00022 d: 299 | A = A + OR[299]
0x0183 (0x000306) 0x2936- f:00024 d: 310 | OR[310] = A
0x0184 (0x000308) 0x211F- f:00020 d: 287 | A = OR[287]
0x0185 (0x00030A) 0x2937- f:00024 d: 311 | OR[311] = A
0x0186 (0x00030C) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0187 (0x00030E) 0x2938- f:00024 d: 312 | OR[312] = A
0x0188 (0x000310) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0189 (0x000312) 0x2939- f:00024 d: 313 | OR[313] = A
0x018A (0x000314) 0x1134- f:00010 d: 308 | A = 308 (0x0134)
0x018B (0x000316) 0x5800- f:00054 d: 0 | B = A
0x018C (0x000318) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x018D (0x00031A) 0x7C09- f:00076 d: 9 | R = OR[9]
0x018E (0x00031C) 0x2D2B- f:00026 d: 299 | OR[299] = OR[299] + 1
0x018F (0x00031E) 0x7221- f:00071 d: 33 | P = P - 33 (0x016E)
0x0190 (0x000320) 0x212B- f:00020 d: 299 | A = OR[299]
0x0191 (0x000322) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x0192 (0x000324) 0x292B- f:00024 d: 299 | OR[299] = A
0x0193 (0x000326) 0x211E- f:00020 d: 286 | A = OR[286]
0x0194 (0x000328) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0195 (0x00032A) 0x2908- f:00024 d: 264 | OR[264] = A
0x0196 (0x00032C) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0197 (0x00032E) 0x0A09- f:00005 d: 9 | A = A < 9 (0x0009)
0x0198 (0x000330) 0x252B- f:00022 d: 299 | A = A + OR[299]
0x0199 (0x000332) 0x0C09- f:00006 d: 9 | A = A >> 9 (0x0009)
0x019A (0x000334) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x019B (0x000336) 0x0200- f:00001 d: 0 | EXIT
0x019C (0x000338) 0x2127- f:00020 d: 295 | A = OR[295]
0x019D (0x00033A) 0x8604- f:00103 d: 4 | P = P + 4 (0x01A1), A # 0
0x019E (0x00033C) 0x2128- f:00020 d: 296 | A = OR[296]
0x019F (0x00033E) 0x8602- f:00103 d: 2 | P = P + 2 (0x01A1), A # 0
0x01A0 (0x000340) 0x7046- f:00070 d: 70 | P = P + 70 (0x01E6)
0x01A1 (0x000342) 0x2118- f:00020 d: 280 | A = OR[280]
0x01A2 (0x000344) 0x1408- f:00012 d: 8 | A = A + 8 (0x0008)
0x01A3 (0x000346) 0x2908- f:00024 d: 264 | OR[264] = A
0x01A4 (0x000348) 0x3108- f:00030 d: 264 | A = (OR[264])
0x01A5 (0x00034A) 0x292F- f:00024 d: 303 | OR[303] = A
0x01A6 (0x00034C) 0x2118- f:00020 d: 280 | A = OR[280]
0x01A7 (0x00034E) 0x1409- f:00012 d: 9 | A = A + 9 (0x0009)
0x01A8 (0x000350) 0x2908- f:00024 d: 264 | OR[264] = A
0x01A9 (0x000352) 0x3108- f:00030 d: 264 | A = (OR[264])
0x01AA (0x000354) 0x2930- f:00024 d: 304 | OR[304] = A
0x01AB (0x000356) 0x212F- f:00020 d: 303 | A = OR[303]
0x01AC (0x000358) 0x8404- f:00102 d: 4 | P = P + 4 (0x01B0), A = 0
0x01AD (0x00035A) 0x2130- f:00020 d: 304 | A = OR[304]
0x01AE (0x00035C) 0x8402- f:00102 d: 2 | P = P + 2 (0x01B0), A = 0
0x01AF (0x00035E) 0x7003- f:00070 d: 3 | P = P + 3 (0x01B2)
0x01B0 (0x000360) 0x7C34- f:00076 d: 52 | R = OR[52]
0x01B1 (0x000362) 0x0000- f:00000 d: 0 | PASS
0x01B2 (0x000364) 0x2130- f:00020 d: 304 | A = OR[304]
0x01B3 (0x000366) 0x1408- f:00012 d: 8 | A = A + 8 (0x0008)
0x01B4 (0x000368) 0x2908- f:00024 d: 264 | OR[264] = A
0x01B5 (0x00036A) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x01B6 (0x00036C) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x01B7 (0x00036E) 0x2130- f:00020 d: 304 | A = OR[304]
0x01B8 (0x000370) 0x1409- f:00012 d: 9 | A = A + 9 (0x0009)
0x01B9 (0x000372) 0x2908- f:00024 d: 264 | OR[264] = A
0x01BA (0x000374) 0x211C- f:00020 d: 284 | A = OR[284]
0x01BB (0x000376) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x01BC (0x000378) 0x2130- f:00020 d: 304 | A = OR[304]
0x01BD (0x00037A) 0x140A- f:00012 d: 10 | A = A + 10 (0x000A)
0x01BE (0x00037C) 0x2908- f:00024 d: 264 | OR[264] = A
0x01BF (0x00037E) 0x211D- f:00020 d: 285 | A = OR[285]
0x01C0 (0x000380) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x01C1 (0x000382) 0x2130- f:00020 d: 304 | A = OR[304]
0x01C2 (0x000384) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x01C3 (0x000386) 0x2908- f:00024 d: 264 | OR[264] = A
0x01C4 (0x000388) 0x2121- f:00020 d: 289 | A = OR[289]
0x01C5 (0x00038A) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x01C6 (0x00038C) 0x2130- f:00020 d: 304 | A = OR[304]
0x01C7 (0x00038E) 0x140C- f:00012 d: 12 | A = A + 12 (0x000C)
0x01C8 (0x000390) 0x2908- f:00024 d: 264 | OR[264] = A
0x01C9 (0x000392) 0x2122- f:00020 d: 290 | A = OR[290]
0x01CA (0x000394) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x01CB (0x000396) 0x2130- f:00020 d: 304 | A = OR[304]
0x01CC (0x000398) 0x140D- f:00012 d: 13 | A = A + 13 (0x000D)
0x01CD (0x00039A) 0x2908- f:00024 d: 264 | OR[264] = A
0x01CE (0x00039C) 0x2127- f:00020 d: 295 | A = OR[295]
0x01CF (0x00039E) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x01D0 (0x0003A0) 0x2130- f:00020 d: 304 | A = OR[304]
0x01D1 (0x0003A2) 0x140E- f:00012 d: 14 | A = A + 14 (0x000E)
0x01D2 (0x0003A4) 0x2908- f:00024 d: 264 | OR[264] = A
0x01D3 (0x0003A6) 0x2128- f:00020 d: 296 | A = OR[296]
0x01D4 (0x0003A8) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x01D5 (0x0003AA) 0x100E- f:00010 d: 14 | A = 14 (0x000E)
0x01D6 (0x0003AC) 0x2934- f:00024 d: 308 | OR[308] = A
0x01D7 (0x0003AE) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x01D8 (0x0003B0) 0x2935- f:00024 d: 309 | OR[309] = A
0x01D9 (0x0003B2) 0x212F- f:00020 d: 303 | A = OR[303]
0x01DA (0x0003B4) 0x2936- f:00024 d: 310 | OR[310] = A
0x01DB (0x0003B6) 0x2130- f:00020 d: 304 | A = OR[304]
0x01DC (0x0003B8) 0x2937- f:00024 d: 311 | OR[311] = A
0x01DD (0x0003BA) 0x1134- f:00010 d: 308 | A = 308 (0x0134)
0x01DE (0x0003BC) 0x5800- f:00054 d: 0 | B = A
0x01DF (0x0003BE) 0x1800-0x3918 f:00014 d: 0 | A = 14616 (0x3918)
0x01E1 (0x0003C2) 0x7C09- f:00076 d: 9 | R = OR[9]
0x01E2 (0x0003C4) 0x2006- f:00020 d: 6 | A = OR[6]
0x01E3 (0x0003C6) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x01E4 (0x0003C8) 0x2908- f:00024 d: 264 | OR[264] = A
0x01E5 (0x0003CA) 0x3108- f:00030 d: 264 | A = (OR[264])
0x01E6 (0x0003CC) 0x211E- f:00020 d: 286 | A = OR[286]
0x01E7 (0x0003CE) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x01E8 (0x0003D0) 0x2908- f:00024 d: 264 | OR[264] = A
0x01E9 (0x0003D2) 0x3108- f:00030 d: 264 | A = (OR[264])
0x01EA (0x0003D4) 0x1A00-0xFF00 f:00015 d: 0 | A = A & 65280 (0xFF00)
0x01EC (0x0003D8) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x01ED (0x0003DA) 0x211E- f:00020 d: 286 | A = OR[286]
0x01EE (0x0003DC) 0x1402- f:00012 d: 2 | A = A + 2 (0x0002)
0x01EF (0x0003DE) 0x2908- f:00024 d: 264 | OR[264] = A
0x01F0 (0x0003E0) 0x1800-0xFFFF f:00014 d: 0 | A = 65535 (0xFFFF)
0x01F2 (0x0003E4) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x01F3 (0x0003E6) 0x211E- f:00020 d: 286 | A = OR[286]
0x01F4 (0x0003E8) 0x1403- f:00012 d: 3 | A = A + 3 (0x0003)
0x01F5 (0x0003EA) 0x2908- f:00024 d: 264 | OR[264] = A
0x01F6 (0x0003EC) 0x1800-0xFFFF f:00014 d: 0 | A = 65535 (0xFFFF)
0x01F8 (0x0003F0) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x01F9 (0x0003F2) 0x0200- f:00001 d: 0 | EXIT
0x01FA (0x0003F4) 0x2118- f:00020 d: 280 | A = OR[280]
0x01FB (0x0003F6) 0x1419- f:00012 d: 25 | A = A + 25 (0x0019)
0x01FC (0x0003F8) 0x2908- f:00024 d: 264 | OR[264] = A
0x01FD (0x0003FA) 0x2119- f:00020 d: 281 | A = OR[281]
0x01FE (0x0003FC) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x01FF (0x0003FE) 0x1005- f:00010 d: 5 | A = 5 (0x0005)
0x0200 (0x000400) 0x2931- f:00024 d: 305 | OR[305] = A
0x0201 (0x000402) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0202 (0x000404) 0x2932- f:00024 d: 306 | OR[306] = A
0x0203 (0x000406) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0204 (0x000408) 0x292C- f:00024 d: 300 | OR[300] = A
0x0205 (0x00040A) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0206 (0x00040C) 0x2927- f:00024 d: 295 | OR[295] = A
0x0207 (0x00040E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0208 (0x000410) 0x2928- f:00024 d: 296 | OR[296] = A
0x0209 (0x000412) 0x2118- f:00020 d: 280 | A = OR[280]
0x020A (0x000414) 0x140D- f:00012 d: 13 | A = A + 13 (0x000D)
0x020B (0x000416) 0x2908- f:00024 d: 264 | OR[264] = A
0x020C (0x000418) 0x3108- f:00030 d: 264 | A = (OR[264])
0x020D (0x00041A) 0x8402- f:00102 d: 2 | P = P + 2 (0x020F), A = 0
0x020E (0x00041C) 0x7007- f:00070 d: 7 | P = P + 7 (0x0215)
0x020F (0x00041E) 0x2118- f:00020 d: 280 | A = OR[280]
0x0210 (0x000420) 0x140E- f:00012 d: 14 | A = A + 14 (0x000E)
0x0211 (0x000422) 0x2908- f:00024 d: 264 | OR[264] = A
0x0212 (0x000424) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0213 (0x000426) 0x291B- f:00024 d: 283 | OR[283] = A
0x0214 (0x000428) 0x7013- f:00070 d: 19 | P = P + 19 (0x0227)
0x0215 (0x00042A) 0x2132- f:00020 d: 306 | A = OR[306]
0x0216 (0x00042C) 0x8402- f:00102 d: 2 | P = P + 2 (0x0218), A = 0
0x0217 (0x00042E) 0x7009- f:00070 d: 9 | P = P + 9 (0x0220)
0x0218 (0x000430) 0x2118- f:00020 d: 280 | A = OR[280]
0x0219 (0x000432) 0x140E- f:00012 d: 14 | A = A + 14 (0x000E)
0x021A (0x000434) 0x2908- f:00024 d: 264 | OR[264] = A
0x021B (0x000436) 0x3108- f:00030 d: 264 | A = (OR[264])
0x021C (0x000438) 0x291B- f:00024 d: 283 | OR[283] = A
0x021D (0x00043A) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x021E (0x00043C) 0x2932- f:00024 d: 306 | OR[306] = A
0x021F (0x00043E) 0x7008- f:00070 d: 8 | P = P + 8 (0x0227)
0x0220 (0x000440) 0x2118- f:00020 d: 280 | A = OR[280]
0x0221 (0x000442) 0x140F- f:00012 d: 15 | A = A + 15 (0x000F)
0x0222 (0x000444) 0x2908- f:00024 d: 264 | OR[264] = A
0x0223 (0x000446) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0224 (0x000448) 0x291B- f:00024 d: 283 | OR[283] = A
0x0225 (0x00044A) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0226 (0x00044C) 0x2932- f:00024 d: 306 | OR[306] = A
0x0227 (0x00044E) 0x2123- f:00020 d: 291 | A = OR[291]
0x0228 (0x000450) 0x8402- f:00102 d: 2 | P = P + 2 (0x022A), A = 0
0x0229 (0x000452) 0x700D- f:00070 d: 13 | P = P + 13 (0x0236)
0x022A (0x000454) 0x2124- f:00020 d: 292 | A = OR[292]
0x022B (0x000456) 0x1E00-0x1000 f:00017 d: 0 | A = A - 4096 (0x1000)
0x022D (0x00045A) 0x8002- f:00100 d: 2 | P = P + 2 (0x022F), C = 0
0x022E (0x00045C) 0x8602- f:00103 d: 2 | P = P + 2 (0x0230), A # 0
0x022F (0x00045E) 0x7002- f:00070 d: 2 | P = P + 2 (0x0231)
0x0230 (0x000460) 0x7006- f:00070 d: 6 | P = P + 6 (0x0236)
0x0231 (0x000462) 0x1006- f:00010 d: 6 | A = 6 (0x0006)
0x0232 (0x000464) 0x2931- f:00024 d: 305 | OR[305] = A
0x0233 (0x000466) 0x2124- f:00020 d: 292 | A = OR[292]
0x0234 (0x000468) 0x2933- f:00024 d: 307 | OR[307] = A
0x0235 (0x00046A) 0x7004- f:00070 d: 4 | P = P + 4 (0x0239)
0x0236 (0x00046C) 0x1800-0x1000 f:00014 d: 0 | A = 4096 (0x1000)
0x0238 (0x000470) 0x2933- f:00024 d: 307 | OR[307] = A
0x0239 (0x000472) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x023A (0x000474) 0x290F- f:00024 d: 271 | OR[271] = A
0x023B (0x000476) 0x2124- f:00020 d: 292 | A = OR[292]
0x023C (0x000478) 0x2733- f:00023 d: 307 | A = A - OR[307]
0x023D (0x00047A) 0x2924- f:00024 d: 292 | OR[292] = A
0x023E (0x00047C) 0x8202- f:00101 d: 2 | P = P + 2 (0x0240), C = 1
0x023F (0x00047E) 0x2F23- f:00027 d: 291 | OR[291] = OR[291] - 1
0x0240 (0x000480) 0x0810- f:00004 d: 16 | A = A > 16 (0x0010)
0x0241 (0x000482) 0x230F- f:00021 d: 271 | A = A & OR[271]
0x0242 (0x000484) 0x3118- f:00030 d: 280 | A = (OR[280])
0x0243 (0x000486) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x0244 (0x000488) 0x2913- f:00024 d: 275 | OR[275] = A
0x0245 (0x00048A) 0x0400- f:00002 d: 0 | I = 0
0x0246 (0x00048C) 0x0000- f:00000 d: 0 | PASS
0x0247 (0x00048E) 0x1034- f:00010 d: 52 | A = 52 (0x0034)
0x0248 (0x000490) 0x29C3- f:00024 d: 451 | OR[451] = A
0x0249 (0x000492) 0x2113- f:00020 d: 275 | A = OR[275]
0x024A (0x000494) 0x29C4- f:00024 d: 452 | OR[452] = A
0x024B (0x000496) 0x2118- f:00020 d: 280 | A = OR[280]
0x024C (0x000498) 0x29C5- f:00024 d: 453 | OR[453] = A
0x024D (0x00049A) 0x2131- f:00020 d: 305 | A = OR[305]
0x024E (0x00049C) 0x29C6- f:00024 d: 454 | OR[454] = A
0x024F (0x00049E) 0x211B- f:00020 d: 283 | A = OR[283]
0x0250 (0x0004A0) 0x29C7- f:00024 d: 455 | OR[455] = A
0x0251 (0x0004A2) 0x2133- f:00020 d: 307 | A = OR[307]
0x0252 (0x0004A4) 0x29C8- f:00024 d: 456 | OR[456] = A
0x0253 (0x0004A6) 0x7DC2- f:00076 d: 450 | R = OR[450]
0x0254 (0x0004A8) 0x2118- f:00020 d: 280 | A = OR[280]
0x0255 (0x0004AA) 0x1417- f:00012 d: 23 | A = A + 23 (0x0017)
0x0256 (0x0004AC) 0x2908- f:00024 d: 264 | OR[264] = A
0x0257 (0x0004AE) 0x211B- f:00020 d: 283 | A = OR[283]
0x0258 (0x0004B0) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0259 (0x0004B2) 0x2118- f:00020 d: 280 | A = OR[280]
0x025A (0x0004B4) 0x1418- f:00012 d: 24 | A = A + 24 (0x0018)
0x025B (0x0004B6) 0x2908- f:00024 d: 264 | OR[264] = A
0x025C (0x0004B8) 0x2133- f:00020 d: 307 | A = OR[307]
0x025D (0x0004BA) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x025E (0x0004BC) 0x2118- f:00020 d: 280 | A = OR[280]
0x025F (0x0004BE) 0x1414- f:00012 d: 20 | A = A + 20 (0x0014)
0x0260 (0x0004C0) 0x290D- f:00024 d: 269 | OR[269] = A
0x0261 (0x0004C2) 0x2131- f:00020 d: 305 | A = OR[305]
0x0262 (0x0004C4) 0x390D- f:00034 d: 269 | (OR[269]) = A
0x0263 (0x0004C6) 0x2D0D- f:00026 d: 269 | OR[269] = OR[269] + 1
0x0264 (0x0004C8) 0x310D- f:00030 d: 269 | A = (OR[269])
0x0265 (0x0004CA) 0x840B- f:00102 d: 11 | P = P + 11 (0x0270), A = 0
0x0266 (0x0004CC) 0x1002- f:00010 d: 2 | A = 2 (0x0002)
0x0267 (0x0004CE) 0x2934- f:00024 d: 308 | OR[308] = A
0x0268 (0x0004D0) 0x210D- f:00020 d: 269 | A = OR[269]
0x0269 (0x0004D2) 0x2935- f:00024 d: 309 | OR[309] = A
0x026A (0x0004D4) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x026B (0x0004D6) 0x2936- f:00024 d: 310 | OR[310] = A
0x026C (0x0004D8) 0x1134- f:00010 d: 308 | A = 308 (0x0134)
0x026D (0x0004DA) 0x5800- f:00054 d: 0 | B = A
0x026E (0x0004DC) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x026F (0x0004DE) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0270 (0x0004E0) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0271 (0x0004E2) 0x290D- f:00024 d: 269 | OR[269] = A
0x0272 (0x0004E4) 0x2118- f:00020 d: 280 | A = OR[280]
0x0273 (0x0004E6) 0x141C- f:00012 d: 28 | A = A + 28 (0x001C)
0x0274 (0x0004E8) 0x2908- f:00024 d: 264 | OR[264] = A
0x0275 (0x0004EA) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0276 (0x0004EC) 0x8613- f:00103 d: 19 | P = P + 19 (0x0289), A # 0
0x0277 (0x0004EE) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0278 (0x0004F0) 0x2934- f:00024 d: 308 | OR[308] = A
0x0279 (0x0004F2) 0x2118- f:00020 d: 280 | A = OR[280]
0x027A (0x0004F4) 0x141C- f:00012 d: 28 | A = A + 28 (0x001C)
0x027B (0x0004F6) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x027C (0x0004F8) 0x2935- f:00024 d: 309 | OR[309] = A
0x027D (0x0004FA) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x027E (0x0004FC) 0x2936- f:00024 d: 310 | OR[310] = A
0x027F (0x0004FE) 0x1134- f:00010 d: 308 | A = 308 (0x0134)
0x0280 (0x000500) 0x5800- f:00054 d: 0 | B = A
0x0281 (0x000502) 0x1800-0x3918 f:00014 d: 0 | A = 14616 (0x3918)
0x0283 (0x000506) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0284 (0x000508) 0x2006- f:00020 d: 6 | A = OR[6]
0x0285 (0x00050A) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x0286 (0x00050C) 0x2908- f:00024 d: 264 | OR[264] = A
0x0287 (0x00050E) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0288 (0x000510) 0x290D- f:00024 d: 269 | OR[269] = A
0x0289 (0x000512) 0x2118- f:00020 d: 280 | A = OR[280]
0x028A (0x000514) 0x141C- f:00012 d: 28 | A = A + 28 (0x001C)
0x028B (0x000516) 0x2908- f:00024 d: 264 | OR[264] = A
0x028C (0x000518) 0x3108- f:00030 d: 264 | A = (OR[264])
0x028D (0x00051A) 0x291A- f:00024 d: 282 | OR[282] = A
0x028E (0x00051C) 0x2118- f:00020 d: 280 | A = OR[280]
0x028F (0x00051E) 0x141C- f:00012 d: 28 | A = A + 28 (0x001C)
0x0290 (0x000520) 0x2908- f:00024 d: 264 | OR[264] = A
0x0291 (0x000522) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0292 (0x000524) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0293 (0x000526) 0x210D- f:00020 d: 269 | A = OR[269]
0x0294 (0x000528) 0x2118- f:00020 d: 280 | A = OR[280]
0x0295 (0x00052A) 0x141F- f:00012 d: 31 | A = A + 31 (0x001F)
0x0296 (0x00052C) 0x2908- f:00024 d: 264 | OR[264] = A
0x0297 (0x00052E) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0298 (0x000530) 0x291B- f:00024 d: 283 | OR[283] = A
0x0299 (0x000532) 0x2118- f:00020 d: 280 | A = OR[280]
0x029A (0x000534) 0x1420- f:00012 d: 32 | A = A + 32 (0x0020)
0x029B (0x000536) 0x2908- f:00024 d: 264 | OR[264] = A
0x029C (0x000538) 0x3108- f:00030 d: 264 | A = (OR[264])
0x029D (0x00053A) 0x2933- f:00024 d: 307 | OR[307] = A
0x029E (0x00053C) 0x2118- f:00020 d: 280 | A = OR[280]
0x029F (0x00053E) 0x141F- f:00012 d: 31 | A = A + 31 (0x001F)
0x02A0 (0x000540) 0x2908- f:00024 d: 264 | OR[264] = A
0x02A1 (0x000542) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x02A2 (0x000544) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x02A3 (0x000546) 0x2118- f:00020 d: 280 | A = OR[280]
0x02A4 (0x000548) 0x1420- f:00012 d: 32 | A = A + 32 (0x0020)
0x02A5 (0x00054A) 0x2908- f:00024 d: 264 | OR[264] = A
0x02A6 (0x00054C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x02A7 (0x00054E) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x02A8 (0x000550) 0x3118- f:00030 d: 280 | A = (OR[280])
0x02A9 (0x000552) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x02AA (0x000554) 0x2913- f:00024 d: 275 | OR[275] = A
0x02AB (0x000556) 0x0400- f:00002 d: 0 | I = 0
0x02AC (0x000558) 0x0000- f:00000 d: 0 | PASS
0x02AD (0x00055A) 0x1035- f:00010 d: 53 | A = 53 (0x0035)
0x02AE (0x00055C) 0x29C3- f:00024 d: 451 | OR[451] = A
0x02AF (0x00055E) 0x2113- f:00020 d: 275 | A = OR[275]
0x02B0 (0x000560) 0x29C4- f:00024 d: 452 | OR[452] = A
0x02B1 (0x000562) 0x2118- f:00020 d: 280 | A = OR[280]
0x02B2 (0x000564) 0x29C5- f:00024 d: 453 | OR[453] = A
0x02B3 (0x000566) 0x211A- f:00020 d: 282 | A = OR[282]
0x02B4 (0x000568) 0x29C6- f:00024 d: 454 | OR[454] = A
0x02B5 (0x00056A) 0x211B- f:00020 d: 283 | A = OR[283]
0x02B6 (0x00056C) 0x29C7- f:00024 d: 455 | OR[455] = A
0x02B7 (0x00056E) 0x2133- f:00020 d: 307 | A = OR[307]
0x02B8 (0x000570) 0x29C8- f:00024 d: 456 | OR[456] = A
0x02B9 (0x000572) 0x7DC2- f:00076 d: 450 | R = OR[450]
0x02BA (0x000574) 0x2133- f:00020 d: 307 | A = OR[307]
0x02BB (0x000576) 0x8602- f:00103 d: 2 | P = P + 2 (0x02BD), A # 0
0x02BC (0x000578) 0x7048- f:00070 d: 72 | P = P + 72 (0x0304)
0x02BD (0x00057A) 0x212C- f:00020 d: 300 | A = OR[300]
0x02BE (0x00057C) 0x123F- f:00011 d: 63 | A = A & 63 (0x003F)
0x02BF (0x00057E) 0x2908- f:00024 d: 264 | OR[264] = A
0x02C0 (0x000580) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x02C1 (0x000582) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x02C2 (0x000584) 0x8402- f:00102 d: 2 | P = P + 2 (0x02C4), A = 0
0x02C3 (0x000586) 0x7015- f:00070 d: 21 | P = P + 21 (0x02D8)
0x02C4 (0x000588) 0x211E- f:00020 d: 286 | A = OR[286]
0x02C5 (0x00058A) 0x1404- f:00012 d: 4 | A = A + 4 (0x0004)
0x02C6 (0x00058C) 0x291F- f:00024 d: 287 | OR[287] = A
0x02C7 (0x00058E) 0x1026- f:00010 d: 38 | A = 38 (0x0026)
0x02C8 (0x000590) 0x2934- f:00024 d: 308 | OR[308] = A
0x02C9 (0x000592) 0x211C- f:00020 d: 284 | A = OR[284]
0x02CA (0x000594) 0x2935- f:00024 d: 309 | OR[309] = A
0x02CB (0x000596) 0x211D- f:00020 d: 285 | A = OR[285]
0x02CC (0x000598) 0x252C- f:00022 d: 300 | A = A + OR[300]
0x02CD (0x00059A) 0x2936- f:00024 d: 310 | OR[310] = A
0x02CE (0x00059C) 0x211F- f:00020 d: 287 | A = OR[287]
0x02CF (0x00059E) 0x2937- f:00024 d: 311 | OR[311] = A
0x02D0 (0x0005A0) 0x1040- f:00010 d: 64 | A = 64 (0x0040)
0x02D1 (0x0005A2) 0x2938- f:00024 d: 312 | OR[312] = A
0x02D2 (0x0005A4) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x02D3 (0x0005A6) 0x2939- f:00024 d: 313 | OR[313] = A
0x02D4 (0x0005A8) 0x1134- f:00010 d: 308 | A = 308 (0x0134)
0x02D5 (0x0005AA) 0x5800- f:00054 d: 0 | B = A
0x02D6 (0x0005AC) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x02D7 (0x0005AE) 0x7C09- f:00076 d: 9 | R = OR[9]
0x02D8 (0x0005B0) 0x211F- f:00020 d: 287 | A = OR[287]
0x02D9 (0x0005B2) 0x1402- f:00012 d: 2 | A = A + 2 (0x0002)
0x02DA (0x0005B4) 0x2908- f:00024 d: 264 | OR[264] = A
0x02DB (0x0005B6) 0x3108- f:00030 d: 264 | A = (OR[264])
0x02DC (0x0005B8) 0x292D- f:00024 d: 301 | OR[301] = A
0x02DD (0x0005BA) 0x211F- f:00020 d: 287 | A = OR[287]
0x02DE (0x0005BC) 0x1403- f:00012 d: 3 | A = A + 3 (0x0003)
0x02DF (0x0005BE) 0x2908- f:00024 d: 264 | OR[264] = A
0x02E0 (0x0005C0) 0x3108- f:00030 d: 264 | A = (OR[264])
0x02E1 (0x0005C2) 0x292E- f:00024 d: 302 | OR[302] = A
0x02E2 (0x0005C4) 0x212D- f:00020 d: 301 | A = OR[301]
0x02E3 (0x0005C6) 0x8402- f:00102 d: 2 | P = P + 2 (0x02E5), A = 0
0x02E4 (0x0005C8) 0x7006- f:00070 d: 6 | P = P + 6 (0x02EA)
0x02E5 (0x0005CA) 0x212E- f:00020 d: 302 | A = OR[302]
0x02E6 (0x0005CC) 0x8402- f:00102 d: 2 | P = P + 2 (0x02E8), A = 0
0x02E7 (0x0005CE) 0x7003- f:00070 d: 3 | P = P + 3 (0x02EA)
0x02E8 (0x0005D0) 0x7C34- f:00076 d: 52 | R = OR[52]
0x02E9 (0x0005D2) 0x0000- f:00000 d: 0 | PASS
0x02EA (0x0005D4) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x02EB (0x0005D6) 0x2B1F- f:00025 d: 287 | OR[287] = A + OR[287]
0x02EC (0x0005D8) 0x2D2C- f:00026 d: 300 | OR[300] = OR[300] + 1
0x02ED (0x0005DA) 0x2133- f:00020 d: 307 | A = OR[307]
0x02EE (0x0005DC) 0x1408- f:00012 d: 8 | A = A + 8 (0x0008)
0x02EF (0x0005DE) 0x1601- f:00013 d: 1 | A = A - 1 (0x0001)
0x02F0 (0x0005E0) 0x2913- f:00024 d: 275 | OR[275] = A
0x02F1 (0x0005E2) 0x2113- f:00020 d: 275 | A = OR[275]
0x02F2 (0x0005E4) 0x0803- f:00004 d: 3 | A = A > 3 (0x0003)
0x02F3 (0x0005E6) 0x2913- f:00024 d: 275 | OR[275] = A
0x02F4 (0x0005E8) 0x1027- f:00010 d: 39 | A = 39 (0x0027)
0x02F5 (0x0005EA) 0x2934- f:00024 d: 308 | OR[308] = A
0x02F6 (0x0005EC) 0x212D- f:00020 d: 301 | A = OR[301]
0x02F7 (0x0005EE) 0x2935- f:00024 d: 309 | OR[309] = A
0x02F8 (0x0005F0) 0x212E- f:00020 d: 302 | A = OR[302]
0x02F9 (0x0005F2) 0x2936- f:00024 d: 310 | OR[310] = A
0x02FA (0x0005F4) 0x211B- f:00020 d: 283 | A = OR[283]
0x02FB (0x0005F6) 0x2937- f:00024 d: 311 | OR[311] = A
0x02FC (0x0005F8) 0x2113- f:00020 d: 275 | A = OR[275]
0x02FD (0x0005FA) 0x2938- f:00024 d: 312 | OR[312] = A
0x02FE (0x0005FC) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x02FF (0x0005FE) 0x2939- f:00024 d: 313 | OR[313] = A
0x0300 (0x000600) 0x1134- f:00010 d: 308 | A = 308 (0x0134)
0x0301 (0x000602) 0x5800- f:00054 d: 0 | B = A
0x0302 (0x000604) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0303 (0x000606) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0304 (0x000608) 0x211A- f:00020 d: 282 | A = OR[282]
0x0305 (0x00060A) 0x1602- f:00013 d: 2 | A = A - 2 (0x0002)
0x0306 (0x00060C) 0x8402- f:00102 d: 2 | P = P + 2 (0x0308), A = 0
0x0307 (0x00060E) 0x7003- f:00070 d: 3 | P = P + 3 (0x030A)
0x0308 (0x000610) 0x72FF- f:00071 d: 255 | P = P - 255 (0x0209)
0x0309 (0x000612) 0x7022- f:00070 d: 34 | P = P + 34 (0x032B)
0x030A (0x000614) 0x211A- f:00020 d: 282 | A = OR[282]
0x030B (0x000616) 0x1601- f:00013 d: 1 | A = A - 1 (0x0001)
0x030C (0x000618) 0x8402- f:00102 d: 2 | P = P + 2 (0x030E), A = 0
0x030D (0x00061A) 0x700D- f:00070 d: 13 | P = P + 13 (0x031A)
0x030E (0x00061C) 0x2133- f:00020 d: 307 | A = OR[307]
0x030F (0x00061E) 0x1E00-0x1000 f:00017 d: 0 | A = A - 4096 (0x1000)
0x0311 (0x000622) 0xB634- f:00133 d: 52 | R = OR[52], A # 0
0x0312 (0x000624) 0x0000- f:00000 d: 0 | PASS
0x0313 (0x000626) 0x2128- f:00020 d: 296 | A = OR[296]
0x0314 (0x000628) 0x2533- f:00022 d: 307 | A = A + OR[307]
0x0315 (0x00062A) 0x2928- f:00024 d: 296 | OR[296] = A
0x0316 (0x00062C) 0x8002- f:00100 d: 2 | P = P + 2 (0x0318), C = 0
0x0317 (0x00062E) 0x2D27- f:00026 d: 295 | OR[295] = OR[295] + 1
0x0318 (0x000630) 0x730F- f:00071 d: 271 | P = P - 271 (0x0209)
0x0319 (0x000632) 0x7012- f:00070 d: 18 | P = P + 18 (0x032B)
0x031A (0x000634) 0x211A- f:00020 d: 282 | A = OR[282]
0x031B (0x000636) 0x8402- f:00102 d: 2 | P = P + 2 (0x031D), A = 0
0x031C (0x000638) 0x7007- f:00070 d: 7 | P = P + 7 (0x0323)
0x031D (0x00063A) 0x2128- f:00020 d: 296 | A = OR[296]
0x031E (0x00063C) 0x2533- f:00022 d: 307 | A = A + OR[307]
0x031F (0x00063E) 0x2928- f:00024 d: 296 | OR[296] = A
0x0320 (0x000640) 0x8002- f:00100 d: 2 | P = P + 2 (0x0322), C = 0
0x0321 (0x000642) 0x2D27- f:00026 d: 295 | OR[295] = OR[295] + 1
0x0322 (0x000644) 0x7009- f:00070 d: 9 | P = P + 9 (0x032B)
0x0323 (0x000646) 0x211A- f:00020 d: 282 | A = OR[282]
0x0324 (0x000648) 0x1620- f:00013 d: 32 | A = A - 32 (0x0020)
0x0325 (0x00064A) 0x8202- f:00101 d: 2 | P = P + 2 (0x0327), C = 1
0x0326 (0x00064C) 0x7003- f:00070 d: 3 | P = P + 3 (0x0329)
0x0327 (0x00064E) 0x0000- f:00000 d: 0 | PASS
0x0328 (0x000650) 0x7003- f:00070 d: 3 | P = P + 3 (0x032B)
0x0329 (0x000652) 0x7C34- f:00076 d: 52 | R = OR[52]
0x032A (0x000654) 0x0000- f:00000 d: 0 | PASS
0x032B (0x000656) 0x0200- f:00001 d: 0 | EXIT
0x032C (0x000658) 0x1016- f:00010 d: 22 | A = 22 (0x0016)
0x032D (0x00065A) 0x2934- f:00024 d: 308 | OR[308] = A
0x032E (0x00065C) 0x1129- f:00010 d: 297 | A = 297 (0x0129)
0x032F (0x00065E) 0x2935- f:00024 d: 309 | OR[309] = A
0x0330 (0x000660) 0x1134- f:00010 d: 308 | A = 308 (0x0134)
0x0331 (0x000662) 0x5800- f:00054 d: 0 | B = A
0x0332 (0x000664) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0333 (0x000666) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0334 (0x000668) 0x8602- f:00103 d: 2 | P = P + 2 (0x0336), A # 0
0x0335 (0x00066A) 0x700B- f:00070 d: 11 | P = P + 11 (0x0340)
0x0336 (0x00066C) 0x1007- f:00010 d: 7 | A = 7 (0x0007)
0x0337 (0x00066E) 0x2934- f:00024 d: 308 | OR[308] = A
0x0338 (0x000670) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0339 (0x000672) 0x2935- f:00024 d: 309 | OR[309] = A
0x033A (0x000674) 0x1134- f:00010 d: 308 | A = 308 (0x0134)
0x033B (0x000676) 0x5800- f:00054 d: 0 | B = A
0x033C (0x000678) 0x1800-0x3918 f:00014 d: 0 | A = 14616 (0x3918)
0x033E (0x00067C) 0x7C09- f:00076 d: 9 | R = OR[9]
0x033F (0x00067E) 0x7213- f:00071 d: 19 | P = P - 19 (0x032C)
0x0340 (0x000680) 0x2119- f:00020 d: 281 | A = OR[281]
0x0341 (0x000682) 0x1408- f:00012 d: 8 | A = A + 8 (0x0008)
0x0342 (0x000684) 0x290D- f:00024 d: 269 | OR[269] = A
0x0343 (0x000686) 0x2129- f:00020 d: 297 | A = OR[297]
0x0344 (0x000688) 0x1408- f:00012 d: 8 | A = A + 8 (0x0008)
0x0345 (0x00068A) 0x290E- f:00024 d: 270 | OR[270] = A
0x0346 (0x00068C) 0x1020- f:00010 d: 32 | A = 32 (0x0020)
0x0347 (0x00068E) 0x1608- f:00013 d: 8 | A = A - 8 (0x0008)
0x0348 (0x000690) 0x290F- f:00024 d: 271 | OR[271] = A
0x0349 (0x000692) 0x7006- f:00070 d: 6 | P = P + 6 (0x034F)
0x034A (0x000694) 0x310D- f:00030 d: 269 | A = (OR[269])
0x034B (0x000696) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x034C (0x000698) 0x2D0D- f:00026 d: 269 | OR[269] = OR[269] + 1
0x034D (0x00069A) 0x2D0E- f:00026 d: 270 | OR[270] = OR[270] + 1
0x034E (0x00069C) 0x2F0F- f:00027 d: 271 | OR[271] = OR[271] - 1
0x034F (0x00069E) 0x210F- f:00020 d: 271 | A = OR[271]
0x0350 (0x0006A0) 0x8E06- f:00107 d: 6 | P = P - 6 (0x034A), A # 0
0x0351 (0x0006A2) 0x0200- f:00001 d: 0 | EXIT
0x0352 (0x0006A4) 0x1017- f:00010 d: 23 | A = 23 (0x0017)
0x0353 (0x0006A6) 0x2934- f:00024 d: 308 | OR[308] = A
0x0354 (0x0006A8) 0x2129- f:00020 d: 297 | A = OR[297]
0x0355 (0x0006AA) 0x2935- f:00024 d: 309 | OR[309] = A
0x0356 (0x0006AC) 0x1134- f:00010 d: 308 | A = 308 (0x0134)
0x0357 (0x0006AE) 0x5800- f:00054 d: 0 | B = A
0x0358 (0x0006B0) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0359 (0x0006B2) 0x7C09- f:00076 d: 9 | R = OR[9]
0x035A (0x0006B4) 0x0200- f:00001 d: 0 | EXIT
0x035B (0x0006B6) 0x101A- f:00010 d: 26 | A = 26 (0x001A)
0x035C (0x0006B8) 0x2934- f:00024 d: 308 | OR[308] = A
0x035D (0x0006BA) 0x111B- f:00010 d: 283 | A = 283 (0x011B)
0x035E (0x0006BC) 0x2935- f:00024 d: 309 | OR[309] = A
0x035F (0x0006BE) 0x1134- f:00010 d: 308 | A = 308 (0x0134)
0x0360 (0x0006C0) 0x5800- f:00054 d: 0 | B = A
0x0361 (0x0006C2) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0362 (0x0006C4) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0363 (0x0006C6) 0x8602- f:00103 d: 2 | P = P + 2 (0x0365), A # 0
0x0364 (0x0006C8) 0x700B- f:00070 d: 11 | P = P + 11 (0x036F)
0x0365 (0x0006CA) 0x1007- f:00010 d: 7 | A = 7 (0x0007)
0x0366 (0x0006CC) 0x2934- f:00024 d: 308 | OR[308] = A
0x0367 (0x0006CE) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0368 (0x0006D0) 0x2935- f:00024 d: 309 | OR[309] = A
0x0369 (0x0006D2) 0x1134- f:00010 d: 308 | A = 308 (0x0134)
0x036A (0x0006D4) 0x5800- f:00054 d: 0 | B = A
0x036B (0x0006D6) 0x1800-0x3918 f:00014 d: 0 | A = 14616 (0x3918)
0x036D (0x0006DA) 0x7C09- f:00076 d: 9 | R = OR[9]
0x036E (0x0006DC) 0x7213- f:00071 d: 19 | P = P - 19 (0x035B)
0x036F (0x0006DE) 0x2118- f:00020 d: 280 | A = OR[280]
0x0370 (0x0006E0) 0x140E- f:00012 d: 14 | A = A + 14 (0x000E)
0x0371 (0x0006E2) 0x2908- f:00024 d: 264 | OR[264] = A
0x0372 (0x0006E4) 0x211B- f:00020 d: 283 | A = OR[283]
0x0373 (0x0006E6) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0374 (0x0006E8) 0x2118- f:00020 d: 280 | A = OR[280]
0x0375 (0x0006EA) 0x140D- f:00012 d: 13 | A = A + 13 (0x000D)
0x0376 (0x0006EC) 0x2908- f:00024 d: 264 | OR[264] = A
0x0377 (0x0006EE) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0378 (0x0006F0) 0x8602- f:00103 d: 2 | P = P + 2 (0x037A), A # 0
0x0379 (0x0006F2) 0x702C- f:00070 d: 44 | P = P + 44 (0x03A5)
0x037A (0x0006F4) 0x101A- f:00010 d: 26 | A = 26 (0x001A)
0x037B (0x0006F6) 0x2934- f:00024 d: 308 | OR[308] = A
0x037C (0x0006F8) 0x111B- f:00010 d: 283 | A = 283 (0x011B)
0x037D (0x0006FA) 0x2935- f:00024 d: 309 | OR[309] = A
0x037E (0x0006FC) 0x1134- f:00010 d: 308 | A = 308 (0x0134)
0x037F (0x0006FE) 0x5800- f:00054 d: 0 | B = A
0x0380 (0x000700) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0381 (0x000702) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0382 (0x000704) 0x8602- f:00103 d: 2 | P = P + 2 (0x0384), A # 0
0x0383 (0x000706) 0x701D- f:00070 d: 29 | P = P + 29 (0x03A0)
0x0384 (0x000708) 0x2118- f:00020 d: 280 | A = OR[280]
0x0385 (0x00070A) 0x140E- f:00012 d: 14 | A = A + 14 (0x000E)
0x0386 (0x00070C) 0x2908- f:00024 d: 264 | OR[264] = A
0x0387 (0x00070E) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0388 (0x000710) 0x291B- f:00024 d: 283 | OR[283] = A
0x0389 (0x000712) 0x101B- f:00010 d: 27 | A = 27 (0x001B)
0x038A (0x000714) 0x2934- f:00024 d: 308 | OR[308] = A
0x038B (0x000716) 0x211B- f:00020 d: 283 | A = OR[283]
0x038C (0x000718) 0x2935- f:00024 d: 309 | OR[309] = A
0x038D (0x00071A) 0x1134- f:00010 d: 308 | A = 308 (0x0134)
0x038E (0x00071C) 0x5800- f:00054 d: 0 | B = A
0x038F (0x00071E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0390 (0x000720) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0391 (0x000722) 0x2118- f:00020 d: 280 | A = OR[280]
0x0392 (0x000724) 0x140E- f:00012 d: 14 | A = A + 14 (0x000E)
0x0393 (0x000726) 0x2908- f:00024 d: 264 | OR[264] = A
0x0394 (0x000728) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0395 (0x00072A) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0396 (0x00072C) 0x1007- f:00010 d: 7 | A = 7 (0x0007)
0x0397 (0x00072E) 0x2934- f:00024 d: 308 | OR[308] = A
0x0398 (0x000730) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0399 (0x000732) 0x2935- f:00024 d: 309 | OR[309] = A
0x039A (0x000734) 0x1134- f:00010 d: 308 | A = 308 (0x0134)
0x039B (0x000736) 0x5800- f:00054 d: 0 | B = A
0x039C (0x000738) 0x1800-0x3918 f:00014 d: 0 | A = 14616 (0x3918)
0x039E (0x00073C) 0x7C09- f:00076 d: 9 | R = OR[9]
0x039F (0x00073E) 0x7244- f:00071 d: 68 | P = P - 68 (0x035B)
0x03A0 (0x000740) 0x2118- f:00020 d: 280 | A = OR[280]
0x03A1 (0x000742) 0x140F- f:00012 d: 15 | A = A + 15 (0x000F)
0x03A2 (0x000744) 0x2908- f:00024 d: 264 | OR[264] = A
0x03A3 (0x000746) 0x211B- f:00020 d: 283 | A = OR[283]
0x03A4 (0x000748) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x03A5 (0x00074A) 0x0200- f:00001 d: 0 | EXIT
0x03A6 (0x00074C) 0x2118- f:00020 d: 280 | A = OR[280]
0x03A7 (0x00074E) 0x140E- f:00012 d: 14 | A = A + 14 (0x000E)
0x03A8 (0x000750) 0x2908- f:00024 d: 264 | OR[264] = A
0x03A9 (0x000752) 0x3108- f:00030 d: 264 | A = (OR[264])
0x03AA (0x000754) 0x291B- f:00024 d: 283 | OR[283] = A
0x03AB (0x000756) 0x211B- f:00020 d: 283 | A = OR[283]
0x03AC (0x000758) 0x8602- f:00103 d: 2 | P = P + 2 (0x03AE), A # 0
0x03AD (0x00075A) 0x700E- f:00070 d: 14 | P = P + 14 (0x03BB)
0x03AE (0x00075C) 0x101B- f:00010 d: 27 | A = 27 (0x001B)
0x03AF (0x00075E) 0x2934- f:00024 d: 308 | OR[308] = A
0x03B0 (0x000760) 0x211B- f:00020 d: 283 | A = OR[283]
0x03B1 (0x000762) 0x2935- f:00024 d: 309 | OR[309] = A
0x03B2 (0x000764) 0x1134- f:00010 d: 308 | A = 308 (0x0134)
0x03B3 (0x000766) 0x5800- f:00054 d: 0 | B = A
0x03B4 (0x000768) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x03B5 (0x00076A) 0x7C09- f:00076 d: 9 | R = OR[9]
0x03B6 (0x00076C) 0x2118- f:00020 d: 280 | A = OR[280]
0x03B7 (0x00076E) 0x140E- f:00012 d: 14 | A = A + 14 (0x000E)
0x03B8 (0x000770) 0x2908- f:00024 d: 264 | OR[264] = A
0x03B9 (0x000772) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x03BA (0x000774) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x03BB (0x000776) 0x2118- f:00020 d: 280 | A = OR[280]
0x03BC (0x000778) 0x140D- f:00012 d: 13 | A = A + 13 (0x000D)
0x03BD (0x00077A) 0x2908- f:00024 d: 264 | OR[264] = A
0x03BE (0x00077C) 0x3108- f:00030 d: 264 | A = (OR[264])
0x03BF (0x00077E) 0x8602- f:00103 d: 2 | P = P + 2 (0x03C1), A # 0
0x03C0 (0x000780) 0x7016- f:00070 d: 22 | P = P + 22 (0x03D6)
0x03C1 (0x000782) 0x2118- f:00020 d: 280 | A = OR[280]
0x03C2 (0x000784) 0x140F- f:00012 d: 15 | A = A + 15 (0x000F)
0x03C3 (0x000786) 0x2908- f:00024 d: 264 | OR[264] = A
0x03C4 (0x000788) 0x3108- f:00030 d: 264 | A = (OR[264])
0x03C5 (0x00078A) 0x291B- f:00024 d: 283 | OR[283] = A
0x03C6 (0x00078C) 0x211B- f:00020 d: 283 | A = OR[283]
0x03C7 (0x00078E) 0x8602- f:00103 d: 2 | P = P + 2 (0x03C9), A # 0
0x03C8 (0x000790) 0x700E- f:00070 d: 14 | P = P + 14 (0x03D6)
0x03C9 (0x000792) 0x101B- f:00010 d: 27 | A = 27 (0x001B)
0x03CA (0x000794) 0x2934- f:00024 d: 308 | OR[308] = A
0x03CB (0x000796) 0x211B- f:00020 d: 283 | A = OR[283]
0x03CC (0x000798) 0x2935- f:00024 d: 309 | OR[309] = A
0x03CD (0x00079A) 0x1134- f:00010 d: 308 | A = 308 (0x0134)
0x03CE (0x00079C) 0x5800- f:00054 d: 0 | B = A
0x03CF (0x00079E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x03D0 (0x0007A0) 0x7C09- f:00076 d: 9 | R = OR[9]
0x03D1 (0x0007A2) 0x2118- f:00020 d: 280 | A = OR[280]
0x03D2 (0x0007A4) 0x140F- f:00012 d: 15 | A = A + 15 (0x000F)
0x03D3 (0x0007A6) 0x2908- f:00024 d: 264 | OR[264] = A
0x03D4 (0x0007A8) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x03D5 (0x0007AA) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x03D6 (0x0007AC) 0x0200- f:00001 d: 0 | EXIT
0x03D7 (0x0007AE) 0x101D- f:00010 d: 29 | A = 29 (0x001D)
0x03D8 (0x0007B0) 0x2934- f:00024 d: 308 | OR[308] = A
0x03D9 (0x0007B2) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x03DA (0x0007B4) 0x2935- f:00024 d: 309 | OR[309] = A
0x03DB (0x0007B6) 0x1134- f:00010 d: 308 | A = 308 (0x0134)
0x03DC (0x0007B8) 0x5800- f:00054 d: 0 | B = A
0x03DD (0x0007BA) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x03DE (0x0007BC) 0x7C09- f:00076 d: 9 | R = OR[9]
0x03DF (0x0007BE) 0x2006- f:00020 d: 6 | A = OR[6]
0x03E0 (0x0007C0) 0x140C- f:00012 d: 12 | A = A + 12 (0x000C)
0x03E1 (0x0007C2) 0x2908- f:00024 d: 264 | OR[264] = A
0x03E2 (0x0007C4) 0x3108- f:00030 d: 264 | A = (OR[264])
0x03E3 (0x0007C6) 0x292D- f:00024 d: 301 | OR[301] = A
0x03E4 (0x0007C8) 0x2006- f:00020 d: 6 | A = OR[6]
0x03E5 (0x0007CA) 0x140D- f:00012 d: 13 | A = A + 13 (0x000D)
0x03E6 (0x0007CC) 0x2908- f:00024 d: 264 | OR[264] = A
0x03E7 (0x0007CE) 0x3108- f:00030 d: 264 | A = (OR[264])
0x03E8 (0x0007D0) 0x292E- f:00024 d: 302 | OR[302] = A
0x03E9 (0x0007D2) 0x2006- f:00020 d: 6 | A = OR[6]
0x03EA (0x0007D4) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x03EB (0x0007D6) 0x2908- f:00024 d: 264 | OR[264] = A
0x03EC (0x0007D8) 0x3108- f:00030 d: 264 | A = (OR[264])
0x03ED (0x0007DA) 0x8602- f:00103 d: 2 | P = P + 2 (0x03EF), A # 0
0x03EE (0x0007DC) 0x700B- f:00070 d: 11 | P = P + 11 (0x03F9)
0x03EF (0x0007DE) 0x1007- f:00010 d: 7 | A = 7 (0x0007)
0x03F0 (0x0007E0) 0x2934- f:00024 d: 308 | OR[308] = A
0x03F1 (0x0007E2) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x03F2 (0x0007E4) 0x2935- f:00024 d: 309 | OR[309] = A
0x03F3 (0x0007E6) 0x1134- f:00010 d: 308 | A = 308 (0x0134)
0x03F4 (0x0007E8) 0x5800- f:00054 d: 0 | B = A
0x03F5 (0x0007EA) 0x1800-0x3918 f:00014 d: 0 | A = 14616 (0x3918)
0x03F7 (0x0007EE) 0x7C09- f:00076 d: 9 | R = OR[9]
0x03F8 (0x0007F0) 0x7221- f:00071 d: 33 | P = P - 33 (0x03D7)
0x03F9 (0x0007F2) 0x0200- f:00001 d: 0 | EXIT
0x03FA (0x0007F4) 0x3118- f:00030 d: 280 | A = (OR[280])
0x03FB (0x0007F6) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x03FC (0x0007F8) 0x2913- f:00024 d: 275 | OR[275] = A
0x03FD (0x0007FA) 0x2118- f:00020 d: 280 | A = OR[280]
0x03FE (0x0007FC) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x03FF (0x0007FE) 0x2908- f:00024 d: 264 | OR[264] = A
0x0400 (0x000800) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0401 (0x000802) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x0402 (0x000804) 0x2914- f:00024 d: 276 | OR[276] = A
0x0403 (0x000806) 0x0400- f:00002 d: 0 | I = 0
0x0404 (0x000808) 0x0000- f:00000 d: 0 | PASS
0x0405 (0x00080A) 0x1031- f:00010 d: 49 | A = 49 (0x0031)
0x0406 (0x00080C) 0x29C3- f:00024 d: 451 | OR[451] = A
0x0407 (0x00080E) 0x2113- f:00020 d: 275 | A = OR[275]
0x0408 (0x000810) 0x29C4- f:00024 d: 452 | OR[452] = A
0x0409 (0x000812) 0x2118- f:00020 d: 280 | A = OR[280]
0x040A (0x000814) 0x29C5- f:00024 d: 453 | OR[453] = A
0x040B (0x000816) 0x2114- f:00020 d: 276 | A = OR[276]
0x040C (0x000818) 0x29C6- f:00024 d: 454 | OR[454] = A
0x040D (0x00081A) 0x2119- f:00020 d: 281 | A = OR[281]
0x040E (0x00081C) 0x29C7- f:00024 d: 455 | OR[455] = A
0x040F (0x00081E) 0x211A- f:00020 d: 282 | A = OR[282]
0x0410 (0x000820) 0x29C8- f:00024 d: 456 | OR[456] = A
0x0411 (0x000822) 0x7DC2- f:00076 d: 450 | R = OR[450]
0x0412 (0x000824) 0x2119- f:00020 d: 281 | A = OR[281]
0x0413 (0x000826) 0x1408- f:00012 d: 8 | A = A + 8 (0x0008)
0x0414 (0x000828) 0x2908- f:00024 d: 264 | OR[264] = A
0x0415 (0x00082A) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0416 (0x00082C) 0x2913- f:00024 d: 275 | OR[275] = A
0x0417 (0x00082E) 0x2119- f:00020 d: 281 | A = OR[281]
0x0418 (0x000830) 0x1409- f:00012 d: 9 | A = A + 9 (0x0009)
0x0419 (0x000832) 0x2908- f:00024 d: 264 | OR[264] = A
0x041A (0x000834) 0x3108- f:00030 d: 264 | A = (OR[264])
0x041B (0x000836) 0x2914- f:00024 d: 276 | OR[276] = A
0x041C (0x000838) 0x2119- f:00020 d: 281 | A = OR[281]
0x041D (0x00083A) 0x1408- f:00012 d: 8 | A = A + 8 (0x0008)
0x041E (0x00083C) 0x2908- f:00024 d: 264 | OR[264] = A
0x041F (0x00083E) 0x2114- f:00020 d: 276 | A = OR[276]
0x0420 (0x000840) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0421 (0x000842) 0x2119- f:00020 d: 281 | A = OR[281]
0x0422 (0x000844) 0x1409- f:00012 d: 9 | A = A + 9 (0x0009)
0x0423 (0x000846) 0x2908- f:00024 d: 264 | OR[264] = A
0x0424 (0x000848) 0x2113- f:00020 d: 275 | A = OR[275]
0x0425 (0x00084A) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0426 (0x00084C) 0x211A- f:00020 d: 282 | A = OR[282]
0x0427 (0x00084E) 0x127F- f:00011 d: 127 | A = A & 127 (0x007F)
0x0428 (0x000850) 0x291A- f:00024 d: 282 | OR[282] = A
0x0429 (0x000852) 0x2119- f:00020 d: 281 | A = OR[281]
0x042A (0x000854) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x042B (0x000856) 0x2908- f:00024 d: 264 | OR[264] = A
0x042C (0x000858) 0x3108- f:00030 d: 264 | A = (OR[264])
0x042D (0x00085A) 0x1A00-0xFF80 f:00015 d: 0 | A = A & 65408 (0xFF80)
0x042F (0x00085E) 0x251A- f:00022 d: 282 | A = A + OR[282]
0x0430 (0x000860) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0431 (0x000862) 0x101C- f:00010 d: 28 | A = 28 (0x001C)
0x0432 (0x000864) 0x2934- f:00024 d: 308 | OR[308] = A
0x0433 (0x000866) 0x2119- f:00020 d: 281 | A = OR[281]
0x0434 (0x000868) 0x2935- f:00024 d: 309 | OR[309] = A
0x0435 (0x00086A) 0x1134- f:00010 d: 308 | A = 308 (0x0134)
0x0436 (0x00086C) 0x5800- f:00054 d: 0 | B = A
0x0437 (0x00086E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0438 (0x000870) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0439 (0x000872) 0x2006- f:00020 d: 6 | A = OR[6]
0x043A (0x000874) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x043B (0x000876) 0x2908- f:00024 d: 264 | OR[264] = A
0x043C (0x000878) 0x3108- f:00030 d: 264 | A = (OR[264])
0x043D (0x00087A) 0x0200- f:00001 d: 0 | EXIT
0x043E (0x00087C) 0x0000- f:00000 d: 0 | PASS
0x043F (0x00087E) 0x0000- f:00000 d: 0 | PASS
| 79.924741
| 79
| 0.457721
|
45db18da846d78fc358dce84a9ec45f85c8e0948
| 689
|
asm
|
Assembly
|
lib/src/xr/x86/xrnStk.asm
|
zanud/xds-2.60
|
b4a32b9c9c91fe513fa5ff78ec87bb44102a3b72
|
[
"Apache-2.0"
] | 53
|
2019-06-10T18:19:44.000Z
|
2021-12-28T18:56:00.000Z
|
Sources/Lib/src/xr/x86/xrnStk.asm
|
undecidedzogvisvitalispotent8stars360/xds
|
cfd20e209193c9cfcee94ad2ca30d8c32ead48c9
|
[
"Apache-2.0"
] | 5
|
2020-07-10T16:06:48.000Z
|
2021-07-30T07:17:50.000Z
|
Sources/Lib/src/xr/x86/xrnStk.asm
|
undecidedzogvisvitalispotent8stars360/xds
|
cfd20e209193c9cfcee94ad2ca30d8c32ead48c9
|
[
"Apache-2.0"
] | 20
|
2019-06-10T18:09:16.000Z
|
2021-10-02T19:46:42.000Z
|
; COPYRIGHT (c) 1995,99,2002 XDS. All Rights Reserved.
cpu 386
bits 32
%ifdef OS2
group DGROUP _DATA
section _DATA use32 align=4 FLAT public 'DATA'
%else
group DGROUP _DATA
section _DATA use32 align=4 public 'DATA'
%endif
%ifdef OS2
section .text use32 align=4 FLAT public 'CODE'
%else
section .text use32 align=16 public 'CODE'
%endif
; assume cs: .text, ds: DGROUP, gs: nothing, fs: nothing
;PROCEDURE ["C"] X2C_StackTop(): SYSTEM.ADDRESS;
global X2C_StackTop
X2C_StackTop:
mov eax, esp
sub eax, 4
ret
;X2C_StackTop endp
| 23.758621
| 73
| 0.573295
|
146eb34b5adc285fe127c71e715819e8887c53ce
| 598
|
asm
|
Assembly
|
programs/oeis/140/A140676.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/140/A140676.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/140/A140676.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A140676: a(n) = n*(3*n + 4).
; 0,7,20,39,64,95,132,175,224,279,340,407,480,559,644,735,832,935,1044,1159,1280,1407,1540,1679,1824,1975,2132,2295,2464,2639,2820,3007,3200,3399,3604,3815,4032,4255,4484,4719,4960,5207,5460,5719,5984,6255,6532,6815,7104,7399,7700,8007,8320,8639,8964,9295,9632,9975,10324,10679,11040,11407,11780,12159,12544,12935,13332,13735,14144,14559,14980,15407,15840,16279,16724,17175,17632,18095,18564,19039,19520,20007,20500,20999,21504,22015,22532,23055,23584,24119,24660,25207,25760,26319,26884,27455,28032,28615,29204,29799
mov $1,3
mul $1,$0
add $1,4
mul $1,$0
mov $0,$1
| 66.444444
| 517
| 0.759197
|
8def7967d24e3809bb1ff1d57afdf1afdb725434
| 565
|
asm
|
Assembly
|
Examples/test102.asm
|
NotFounds/pl0dash-run
|
d62422127825e5afce3c510a0880d1fb0b0b6b7e
|
[
"MIT"
] | null | null | null |
Examples/test102.asm
|
NotFounds/pl0dash-run
|
d62422127825e5afce3c510a0880d1fb0b0b6b7e
|
[
"MIT"
] | null | null | null |
Examples/test102.asm
|
NotFounds/pl0dash-run
|
d62422127825e5afce3c510a0880d1fb0b0b6b7e
|
[
"MIT"
] | null | null | null |
LOAD A,10
STORE A,#(800)
JMP 39
PUSH FP
LOAD FP,SP
LOAD A,#(FP+4)
PUSH A
LOAD A,1
PUSH A
POP B
POP A
PLUS
PUSH C
POP A
STORE A,#(FP+4)
LOAD A,#(FP+4)
PUSH A
LOAD A,#(FP+3)
PUSH A
POP B
POP A
PLUS
PUSH C
LOAD A,#(FP+2)
PUSH A
POP B
POP A
PLUS
PUSH C
POP A
PRINT A
PRINTLN
LOAD A,0
PUSH A
POP C
LOAD SP,FP
POP FP
RET 3
LOAD A,1
PUSH A
LOAD A,1
PUSH A
LOAD A,2
PUSH A
POP B
POP A
PLUS
PUSH C
LOAD A,3
PUSH A
LOAD A,4
PUSH A
POP B
POP A
PLUS
PUSH C
LOAD A,5
PUSH A
LOAD A,6
PUSH A
POP B
POP A
PLUS
PUSH C
CALL 4
PUSH C
POP B
POP A
PLUS
PUSH C
POP A
PRINT A
PRINTLN
END
| 7.533333
| 15
| 0.683186
|
4eb8e19867a1f7d8d2ec6f0fe18e8fd2ad4be165
| 411
|
asm
|
Assembly
|
Bloc2/Micro/Project 4/Project9.asm
|
MrGunnery/Helha
|
553a73bd95bcda6c5fd329b76b39fde2df5bfd22
|
[
"MIT"
] | 1
|
2018-02-07T12:18:52.000Z
|
2018-02-07T12:18:52.000Z
|
Bloc2/Micro/Project 4/Project9.asm
|
MrGunnery/Helha
|
553a73bd95bcda6c5fd329b76b39fde2df5bfd22
|
[
"MIT"
] | null | null | null |
Bloc2/Micro/Project 4/Project9.asm
|
MrGunnery/Helha
|
553a73bd95bcda6c5fd329b76b39fde2df5bfd22
|
[
"MIT"
] | null | null | null |
mx equ 10
lrep equ 12
hrep equ 11
md equ 13
status equ 03
;***************Programmation*******************
Start movlw d'4'
movwf mx
movlw d'0'
movwf hrep
movwf lrep
movlw d'240'
movwf md
mul movf mx,1
btfsc status,2
goto Start
movfw md
addwf lrep,1
btfsc status,0
incf hrep
decfsz mx
goto mul
goto Start
end
| 14.172414
| 49
| 0.513382
|
2b8f20d9f6409f53480b85fb00f6c22d2d17c611
| 25
|
asm
|
Assembly
|
samples/generate/prog1.asm
|
pipeos-one/evmasm
|
9337789f108ba2a8d2f41fc683a05b6befc3f85e
|
[
"MIT"
] | 2
|
2018-08-20T00:17:18.000Z
|
2020-05-21T02:25:23.000Z
|
samples/generate/prog1.asm
|
pipeos-one/evmasm
|
9337789f108ba2a8d2f41fc683a05b6befc3f85e
|
[
"MIT"
] | 1
|
2020-10-02T22:34:54.000Z
|
2020-10-02T22:34:54.000Z
|
samples/generate/prog1.asm
|
pipeos-one/evmasm
|
9337789f108ba2a8d2f41fc683a05b6befc3f85e
|
[
"MIT"
] | 1
|
2020-08-16T09:34:07.000Z
|
2020-08-16T09:34:07.000Z
|
push1 0x01 push2 0x0102
| 8.333333
| 23
| 0.8
|
2594e2a62770773b6d6c9a90a8d93485f679bdf3
| 535
|
asm
|
Assembly
|
string/s001.asm
|
czfshine/assembly-exercise
|
95c8be8331810dfd12f50e48109a4b2a8a978853
|
[
"MIT"
] | 1
|
2018-05-16T13:01:26.000Z
|
2018-05-16T13:01:26.000Z
|
string/s001.asm
|
czfshine/assembly-exercise
|
95c8be8331810dfd12f50e48109a4b2a8a978853
|
[
"MIT"
] | null | null | null |
string/s001.asm
|
czfshine/assembly-exercise
|
95c8be8331810dfd12f50e48109a4b2a8a978853
|
[
"MIT"
] | null | null | null |
; 8086 assembly file
; by:czfshine
; date: 2018/03/31 15:46:49
;逆序输出字符串“BASED ADDRESSING”。
; The Main Data segment
DATA SEGMENT
string DB 'BASED ADDRESSING';
len equ $-string
DATA ENDS
;entry code segment
CODE SEGMENT
ASSUME CS:CODE ,DS:DATA
START: ;entry point
MOV AX,DATA
MOV DS,AX
MOV CX,len
L1:
MOV SI,CX
DEC SI ;;位置
LEA BX,string
MOV DL,[BX+SI]
MOV AH,02H
INT 21H
LOOP L1
MOV AH,4CH ;return
INT 21H
CODE ENDS
END START
| 16.212121
| 34
| 0.586916
|
fd0d092028bcdbe9cdfd7e1bfde88bc7fba007f9
| 261
|
asm
|
Assembly
|
ioctl/IodRedetermine.asm
|
osfree-project/FamilyAPI
|
2119a95cb2bbe6716ecacff4171866f6ea51b8d7
|
[
"BSD-3-Clause"
] | 1
|
2021-11-25T14:01:48.000Z
|
2021-11-25T14:01:48.000Z
|
ioctl/IodRedetermine.asm
|
osfree-project/FamilyAPI
|
2119a95cb2bbe6716ecacff4171866f6ea51b8d7
|
[
"BSD-3-Clause"
] | null | null | null |
ioctl/IodRedetermine.asm
|
osfree-project/FamilyAPI
|
2119a95cb2bbe6716ecacff4171866f6ea51b8d7
|
[
"BSD-3-Clause"
] | 2
|
2021-11-05T06:48:43.000Z
|
2021-12-06T08:07:38.000Z
|
;--------------------------------------------------------
; Category 8 Function 02H Redetermine Media - not supported for versions below DOS 3.2
;--------------------------------------------------------
;
;
;
IODREDETERMINE PROC NEAR
RET
IODREDETERMINE ENDP
| 23.727273
| 86
| 0.429119
|
23a09fb07b06f6db13f2989e86c3219fd5620c48
| 402
|
asm
|
Assembly
|
ESEMPI/Es_normalize.asm
|
Porchetta/py-pdp8-tk
|
5eba6bb2cf72b97602bfa2239e7bf44c454794e0
|
[
"MIT"
] | 8
|
2019-06-07T10:38:41.000Z
|
2022-03-24T13:05:12.000Z
|
ESEMPI/Es_normalize.asm
|
Porchetta/py-pdp8-tk
|
5eba6bb2cf72b97602bfa2239e7bf44c454794e0
|
[
"MIT"
] | 2
|
2015-07-14T12:22:33.000Z
|
2018-05-11T08:35:24.000Z
|
ESEMPI/Es_normalize.asm
|
Porchetta/py-pdp8-tk
|
5eba6bb2cf72b97602bfa2239e7bf44c454794e0
|
[
"MIT"
] | 9
|
2015-05-06T14:35:08.000Z
|
2021-03-23T14:27:21.000Z
|
ORG 100
LDA MANT
CIL
STA MANT
SZE
BUN E1
CLA
STA SGN
BUN CICLO
E1, CLA
INC
STA SGN
CICLO, LDA MANT
CIL
SZE
BUN IS1
STA MANT
LDA EXP
STA INDEC
BSA DEC
LDA INDEC
STA EXP
BUN CICLO
IS1, CLE
LDA MANT
CIR
STA MANT
LDA SGN
SPA
HLT
SHIFT, CIL
ISZ COUNT
BUN SHIFT
ADD MANT
STA MANT
HLT
COUNT, DEC -15
SGN, DEC 0
MANT, DEC 2000
EXP, HEX 3
DEC, DEC 0
CLA
CMA
ADD INDEC
STA INDEC
BUN DEC I
INDEC, DEC 0
END
| 7.444444
| 15
| 0.731343
|
a714215ccdc4391f6545bb8f56b5fe30279943a4
| 3,339
|
asm
|
Assembly
|
src/memory_map.asm
|
backwardspy/spacelib2
|
2b51c3e064988233f5180abff9f7144661a8b468
|
[
"MIT"
] | null | null | null |
src/memory_map.asm
|
backwardspy/spacelib2
|
2b51c3e064988233f5180abff9f7144661a8b468
|
[
"MIT"
] | null | null | null |
src/memory_map.asm
|
backwardspy/spacelib2
|
2b51c3e064988233f5180abff9f7144661a8b468
|
[
"MIT"
] | null | null | null |
// Map of project memory layout. Assembling this file places all source and assets in their correct locations.
// This file also provides named memory locations for use by any included libraries et cetera.
/*
$0000-$00FF Zeropage addressing
*/
.label cpu_data_direction = $0000
.label cpu_port_register = $0001
// temporary storage / parameters
.label zp_param_0 = $73
.label zp_param_1 = $74
.label zp_param_2 = $75
.label zp_param_3 = $76
.label zp_param_4 = $77
.label zp_param_5 = $78
.label zp_param_6 = $79
.label zp_param_7 = $7a
.label zp_param_8 = $7b
// 2-byte vectors
.label zp_vector_0 = $fb
.label zp_vector_1 = $fd
/*
$0100-$01FF Enhanced Zeropage contains the stack
$0200-$02FF Operating System and BASIC pointers
$0300-$03FF Operating System and BASIC pointers
*/
.label irq_ram_vector = $0314
.label nmi_ram_vector = $0318
/*
$0400-$07FF Screen Memory
*/
.label screen_base = $0400
.label sprite_pointer_0 = screen_base + 1016
.label sprite_pointer_1 = screen_base + 1017
.label sprite_pointer_2 = screen_base + 1018
.label sprite_pointer_3 = screen_base + 1019
.label sprite_pointer_4 = screen_base + 1020
.label sprite_pointer_5 = screen_base + 1021
.label sprite_pointer_6 = screen_base + 1022
.label sprite_pointer_7 = screen_base + 1023
/*
$0800-$9FFF Free BASIC program storage area (38911 bytes)
*/
* = $0801 "Basic Loader"
BasicUpstart(entry_point)
* = $1000 "Code"
#import "spacelib2.asm"
#import "main.asm"
* = * "Static Data"
#import "strings.asm"
* = $2000 "Sprites"
.label sprites_data_pointer = * / 64
.import binary "../res/sprites.bin"
/*
$A000-$BFFF Free machine language program storage area (when switched-out with ROM)
$C000-$CFFF Free machine language program storage area
$D000-$DDFF I/O Ports
*/
/* VIC-II registers */
.label sprite_0_x = $d000
.label sprite_0_y = $d001
.label sprite_1_x = $d002
.label sprite_1_y = $d003
.label sprite_2_x = $d004
.label sprite_2_y = $d005
.label sprite_3_x = $d006
.label sprite_3_y = $d007
.label sprite_4_x = $d008
.label sprite_4_y = $d009
.label sprite_5_x = $d00a
.label sprite_5_y = $d00b
.label sprite_6_x = $d00c
.label sprite_6_y = $d00d
.label sprite_7_x = $d00e
.label sprite_7_y = $d00f
.label sprite_x_msb = $d010
.label vic_control = $d011
.label raster_line = $d012
.label sprite_enable = $d015
.label vic_irq_control = $d019
.label vic_irq_enable = $d01a
.label sprite_multicolour_enable = $d01c
.label border_colour = $d020
.label background_colour = $d021
.label sprite_multicolour_0 = $d025
.label sprite_multicolour_1 = $d026
.label sprite_0_colour = $d027
.label sprite_1_colour = $d028
.label sprite_2_colour = $d029
.label sprite_3_colour = $d02a
.label sprite_4_colour = $d02b
.label sprite_5_colour = $d02c
.label sprite_6_colour = $d02d
.label sprite_7_colour = $d02e
.label colour_base = $d800
/* CIA-1 registers */
.label data_port_a = $dc00
.label data_port_b = $dc01
.label data_direction_port_a = $dc02
.label data_direction_port_b = $dc03
.label timer_word = $dc04 // & $dc05
.label irq_control_status = $dc0d
/* CIA-2 registers */
.label nmi_control_status = $dd0d
/*
$DE00-$DFFF Reserved for interface extensions
$E000-$FFFF Free machine language program storage area (when switched-out with ROM)
*/
.label irq_rom_routine = $ea31
.label nmi_rom_vector = $fffa
.label irq_rom_vector = $fffe
| 23.85
| 110
| 0.742438
|
927e69bebc71d2d56e6d1a59bcee297b4806a308
| 1,249
|
asm
|
Assembly
|
lecture7/callret.asm
|
netguy204/cmsc313_examples
|
9c4806c5643b414d0bc7bc0e6cd175fd7342453f
|
[
"Unlicense"
] | 1
|
2021-07-08T01:34:43.000Z
|
2021-07-08T01:34:43.000Z
|
lecture7/callret.asm
|
netguy204/cmsc313_examples
|
9c4806c5643b414d0bc7bc0e6cd175fd7342453f
|
[
"Unlicense"
] | null | null | null |
lecture7/callret.asm
|
netguy204/cmsc313_examples
|
9c4806c5643b414d0bc7bc0e6cd175fd7342453f
|
[
"Unlicense"
] | 8
|
2016-07-25T14:30:46.000Z
|
2021-12-04T07:54:27.000Z
|
[SECTION .data]
;;; Here we declare initialized data. For example: messages, prompts,
;;; and numbers that we know in advance
hello: db "Hello, World!", 10
hello_len: EQU $-hello
[SECTION .bss]
;;; Here we declare uninitialized data. We're reserving space (and
;;; potentially associating names with that space) that our code
;;; will use as it executes. Think of these as "global variables"
[SECTION .text]
;;; This is where our program lives.
global _start ; make start global so ld can find it
sayhi:
;; protect the old values in eax-edx
push eax
push ebx
push ecx
push edx
mov eax, 4
mov ebx, 1
mov ecx, hello
mov edx, hello_len
int 80h
pop edx
pop ecx
pop ebx
pop eax
ret
_start: ; the program actually starts here
;; say hi a few times
mov eax, 10
.loop:
cmp eax, 0
je .loopend
call sayhi
dec eax
jmp .loop
.loopend:
;; call sys_exit to finish things off
mov eax, 1 ; sys_exit syscall
mov ebx, 0 ; no error
int 80H ; kernel interrupt
| 23.12963
| 69
| 0.552442
|
47d35377fcd85287b5c23e50ef9bdd6002f2b311
| 1,279
|
asm
|
Assembly
|
Microprocessor/0_sample_vga_graphics.asm
|
Nmane1612/Nihar-Mane
|
aa4db52a384f706a431c994e4e12d8e5e0cd8402
|
[
"Apache-2.0"
] | 3
|
2019-12-27T06:07:37.000Z
|
2020-07-01T08:51:32.000Z
|
Microprocessor/0_sample_vga_graphics.asm
|
Nihar16/Personal-Repository
|
0d319eeb8dbfa3f7c3eb8501829939ecd6923464
|
[
"MIT"
] | null | null | null |
Microprocessor/0_sample_vga_graphics.asm
|
Nihar16/Personal-Repository
|
0d319eeb8dbfa3f7c3eb8501829939ecd6923464
|
[
"MIT"
] | null | null | null |
name "vga"
; this program draws a tiny rectangle in vga mode.
org 100h
jmp code
; dimensions of the rectangle:
; width: 10 pixels
; height: 5 pixels
w equ 10
h equ 5
; set video mode 13h - 320x200
code: mov ah, 0
mov al, 13h
int 10h
; draw upper line:
mov cx, 100+w ; column
mov dx, 20 ; row
mov al, 15 ; white
u1: mov ah, 0ch ; put pixel
int 10h
dec cx
cmp cx, 100
jae u1
; draw bottom line:
mov cx, 100+w ; column
mov dx, 20+h ; row
mov al, 15 ; white
u2: mov ah, 0ch ; put pixel
int 10h
dec cx
cmp cx, 100
ja u2
; draw left line:
mov cx, 100 ; column
mov dx, 20+h ; row
mov al, 15 ; white
u3: mov ah, 0ch ; put pixel
int 10h
dec dx
cmp dx, 20
ja u3
; draw right line:
mov cx, 100+w ; column
mov dx, 20+h ; row
mov al, 15 ; white
u4: mov ah, 0ch ; put pixel
int 10h
dec dx
cmp dx, 20
ja u4
; pause the screen for dos compatibility:
;wait for keypress
mov ah,00
int 16h
; return to text mode:
mov ah,00
mov al,03 ;text mode 3
int 10h
ret
| 14.370787
| 51
| 0.501173
|
c10e2d47156e7962aafc7f72043be5894cfd73d2
| 987
|
asm
|
Assembly
|
OS/primaryBoot.asm
|
logictech31/myprojects
|
95e92802ff0f713e13c11c541a5e5c4473e1a3e2
|
[
"MIT"
] | 1
|
2021-06-12T08:08:08.000Z
|
2021-06-12T08:08:08.000Z
|
OS/primaryBoot.asm
|
logictech31/myprojects
|
95e92802ff0f713e13c11c541a5e5c4473e1a3e2
|
[
"MIT"
] | null | null | null |
OS/primaryBoot.asm
|
logictech31/myprojects
|
95e92802ff0f713e13c11c541a5e5c4473e1a3e2
|
[
"MIT"
] | null | null | null |
[bits 16]
[org 0x7c00]
; where to load the kernel to
KERNEL_OFFSET equ 0x1111
; BIOS sets boot drive in 'dl'; store for later use
mov [BOOT_DRIVE], dl
; setup stack
mov bp, 0x9000 ; bottom stack pointer
mov sp, bp ; top stack pointer
call load_kernel
mov ax,0x2401 ; A20-Gate Activate
int 0x15 ; The A20 pin is used to
; is used to access 32-bit, you need to activate this pin
; in order to access 32-bit bus
call switch_to_32bit
jmp $
%include "disk.asm"
%include "gdt.asm"
%include "switch_to_32bit.asm"
[bits 16]
load_kernel:
mov bx, KERNEL_OFFSET ; bx -> destination
mov dh, 2 ; dh -> num sectors
mov dl, [BOOT_DRIVE] ; dl -> disk
call disk_load
ret
[bits 32]
BEGIN_32BIT:
call KERNEL_OFFSET ; give control to the kernel
jmp $ ; loop in case kernel returns
; boot drive variable
BOOT_DRIVE db 0
; padding
times 510 - ($-$$) db 0
; magic number
dw 0xaa55
| 21
| 58
| 0.637285
|
e9aa3486a6ceaa4f2dbade4577d5f3852f54b90b
| 689
|
asm
|
Assembly
|
symbolinen_konekieli/Ratol_msdos/summaa1.asm
|
tkukka/VariousContent
|
f7e7ae98ff8521c6c709dabe30855104afe3fe04
|
[
"MIT"
] | null | null | null |
symbolinen_konekieli/Ratol_msdos/summaa1.asm
|
tkukka/VariousContent
|
f7e7ae98ff8521c6c709dabe30855104afe3fe04
|
[
"MIT"
] | null | null | null |
symbolinen_konekieli/Ratol_msdos/summaa1.asm
|
tkukka/VariousContent
|
f7e7ae98ff8521c6c709dabe30855104afe3fe04
|
[
"MIT"
] | null | null | null |
;RaTol Symbolinen konekieli: Harjoitus 2, tehtävä 3
;Tero Kukka IY96A
;Tiedosto: summaa1.asm
;Luotu 25.2.1998
;Aliohjelma _Summaa1
;Yhteenlaskettavat luvut ovat rekistereissä BL ja DH.
;Aliohjelmien esittely:
public _Summaa1
.model small ;muistimalli
.stack 00h ;pinon koko
.data ;muuttujalohko
.code ;ohjelmakoodi alkaa
_Summaa1 proc ;unsigned char _Summaa1();
mov ah, 0 ;varmistetaan summan (word) oikea tulos
mov al, bl
add al, dh
ret ;return AX;
_Summaa1 endp
end
| 23.758621
| 63
| 0.535559
|
7a7aaf16121df46c7514d2ca0beb53e9d2357f9a
| 259
|
asm
|
Assembly
|
programs/oeis/086/A086746.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/086/A086746.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/086/A086746.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A086746: Multiples of 3018.
; 3018,6036,9054,12072,15090,18108,21126,24144,27162,30180,33198,36216,39234,42252,45270,48288,51306,54324,57342,60360,63378,66396,69414,72432,75450,78468,81486,84504,87522,90540,93558,96576,99594,102612
mul $0,3018
add $0,3018
| 43.166667
| 203
| 0.795367
|
bf520c1fd9761db97df805c73b35b7d90b79f4cb
| 129
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/font/fzx/fonts/dkud3/Belegost/_ff_dkud3_Belegost3.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/font/fzx/fonts/dkud3/Belegost/_ff_dkud3_Belegost3.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/font/fzx/fonts/dkud3/Belegost/_ff_dkud3_Belegost3.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
SECTION rodata_font_fzx
PUBLIC _ff_dkud3_Belegost3
_ff_dkud3_Belegost3:
BINARY "font/fzx/fonts/dkud3/Belegost/belegost3.fzx"
| 14.333333
| 52
| 0.844961
|
021a6dd7eadfc06ca659e741b4bc04c744a3d4d4
| 1,293
|
asm
|
Assembly
|
src/firmware-tests/Ui/States/NextStateWaitsForButtonPressTestFixture.asm
|
pete-restall/Cluck2Sesame-Prototype
|
99119b6748847a7b6aeadc4bee42cbed726f7fdc
|
[
"MIT"
] | 1
|
2019-12-12T09:07:08.000Z
|
2019-12-12T09:07:08.000Z
|
src/firmware-tests/Ui/States/NextStateWaitsForButtonPressTestFixture.asm
|
pete-restall/Cluck2Sesame-Prototype
|
99119b6748847a7b6aeadc4bee42cbed726f7fdc
|
[
"MIT"
] | null | null | null |
src/firmware-tests/Ui/States/NextStateWaitsForButtonPressTestFixture.asm
|
pete-restall/Cluck2Sesame-Prototype
|
99119b6748847a7b6aeadc4bee42cbed726f7fdc
|
[
"MIT"
] | null | null | null |
#include "Mcu.inc"
#include "FarCalls.inc"
#include "Ui.inc"
#include "../UiStates.inc"
#include "../../Platform/Lcd/IsLcdIdleStub.inc"
#include "TestFixture.inc"
radix decimal
extern testAct
udata
global initialIsLcdIdle
global initialUiState
global expectUiButtonEventBaseStateChanges
global expectedUiButtonEventBaseState
initialIsLcdIdle res 1
initialUiState res 1
expectUiButtonEventBaseStateChanges res 1
expectedUiButtonEventBaseState res 1
NextStateWaitsForButtonPressTestFixture code
global testArrange
testArrange:
fcall initialiseUi
banksel initialIsLcdIdle
movf initialIsLcdIdle, W
fcall initialiseIsLcdIdleStub
banksel initialUiState
movf initialUiState, W
banksel uiState
movwf uiState
banksel expectUiButtonEventBaseStateChanges
movf expectUiButtonEventBaseStateChanges
btfss STATUS, Z
goto callTestActInTest
banksel uiButtonEventBaseState
movf uiButtonEventBaseState, W
banksel expectedUiButtonEventBaseState
movwf expectedUiButtonEventBaseState
callTestActInTest:
fcall testAct
testAssert:
.assertStateIs UI_STATE_WAIT_BUTTONPRESS
.aliasForAssert uiButtonEventBaseState, _a
.aliasForAssert expectedUiButtonEventBaseState, _b
.assert "_a == _b, 'Expected uiButtonEventBaseState == expectedUiButtonEventBaseState.'"
return
end
| 21.55
| 89
| 0.83836
|
d202698bdf1af9e7685f692367a1204a111b842c
| 263
|
asm
|
Assembly
|
libsrc/math/genmath/c/sccz80/dleq.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/math/genmath/c/sccz80/dleq.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/math/genmath/c/sccz80/dleq.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
;
; Z88dk Generic Floating Point Math Library
;
; TOS >= FA
;
; $Id: dleq.asm,v 1.3 2016-06-21 21:16:49 dom Exp $:
SECTION code_fp
PUBLIC dleq
EXTERN dcompar
EXTERN f_yes
EXTERN f_no
.dleq call dcompar
jp z,f_yes
jp p,f_yes
jp f_no
| 13.15
| 58
| 0.638783
|
91b0903f23806b0508e2acd68a931994c7515f28
| 320
|
asm
|
Assembly
|
programs/oeis/040/A040247.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/040/A040247.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/040/A040247.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A040247: Continued fraction for sqrt(264).
; 16,4,32,4,32,4,32,4,32,4,32,4,32,4,32,4,32,4,32,4,32,4,32,4,32,4,32,4,32,4,32,4,32,4,32,4,32,4,32,4,32,4,32,4,32,4,32,4,32,4,32,4,32,4,32,4,32,4,32,4,32,4,32,4,32,4,32,4,32,4,32,4,32,4,32
sub $0,1
mod $0,2
mul $0,10
add $0,2
pow $0,2
mov $1,$0
div $1,20
mul $1,4
add $1,4
| 24.615385
| 189
| 0.60625
|
45367b200e8320c540ada00080e6bba60c7ee5f9
| 1,267
|
asm
|
Assembly
|
src/strcmp.asm
|
vorsitzende/libcj
|
db1214d724f881d6620f082f8b50da5191bef3b3
|
[
"MIT"
] | 1
|
2019-05-24T15:42:09.000Z
|
2019-05-24T15:42:09.000Z
|
src/strcmp.asm
|
vorsitzende/libcj
|
db1214d724f881d6620f082f8b50da5191bef3b3
|
[
"MIT"
] | null | null | null |
src/strcmp.asm
|
vorsitzende/libcj
|
db1214d724f881d6620f082f8b50da5191bef3b3
|
[
"MIT"
] | null | null | null |
; STRCMP.ASM - Routine to compare two strings
; Claudia Jughashvili, 2019
; Accepts:
; 1: Pointer to C-string.
; 2: Pointer to C-string.
; Returns:
; - EAX set if strings identical. Unset if different.
; State Changes:
; - None.
; C Definition to take the form of:
; - extern unsigned char strcmp (const char*, const char*);
; C++ Definition to take the form of:
; - extern "C" bool strcmp (const char*, const char*);
global _strcmp
extern _strlen
section .text
_strcmp:push ebp
mov ebp, esp
push ecx
push esi
push edi
xor ecx, ecx
mov eax, dword [ebp+8]
lea esi, [eax]
push eax
call _strlen
add esp, 8
mov ecx, eax
mov eax, dword [ebp+12]
lea edi, [eax]
push eax
call _strlen
add esp, 8
cmp eax, ecx
jne .A1
.A0:cmp ecx, 0
jz .A2
mov eax, dword [esi]
cmp eax, dword [edi]
jne .A1
inc esi
inc edi
dec ecx
jmp .A0
.A1:xor eax, eax
jmp .A3
.A2:mov eax, 1
.A3:pop edi
pop esi
pop ecx
pop ebp
ret
| 23.90566
| 65
| 0.493291
|
788d3760bdf04751e926ad43125d72306ca45d25
| 483
|
asm
|
Assembly
|
programs/oeis/019/A019762.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/019/A019762.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/019/A019762.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A019762: Decimal expansion of 2*e.
; 5,4,3,6,5,6,3,6,5,6,9,1,8,0,9,0,4,7,0,7,2,0,5,7,4,9,4,2,7,0,5,3,2,4,9,9,5,5,1,4,4,9,4,1,8,7,3,9,9,9,1,9,1,4,9,9,3,3,9,3,5,2,5,5,4,4,8,1,5,3,2,6,0,7,0,7,0,9,5,1,8,9,1,4,2,7,6,4,3,5,7,0,5,0,3,3,2,8,5,4
mov $1,2
mov $2,1
mov $3,$0
mul $3,5
lpb $3
mul $2,$3
add $1,$2
cmp $4,0
mov $5,$0
div $5,3
add $5,$4
div $1,$5
div $2,$5
sub $3,1
cmp $4,0
lpe
mul $1,2
mov $6,10
pow $6,$0
div $2,$6
div $1,$2
add $1,$6
mod $1,10
mov $0,$1
| 17.25
| 201
| 0.509317
|
2cbc06a32603515065b1b95e0c80389e679faeed
| 579
|
asm
|
Assembly
|
oeis/063/A063205.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/063/A063205.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/063/A063205.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A063205: Dimension of the space of weight 2n cuspidal newforms for Gamma_0( 29 ).
; Submitted by Jamie Morken(s3)
; 2,7,11,17,21,25,31,35,39,45,49,53,59,63,67,73,77,81,87,91,95,101,105,109,115,119,123,129,133,137,143,147,151,157,161,165,171,175,179,185,189,193,199,203,207,213,217,221,227,231,235,241,245,249,255,259,263,269,273,277,283,287,291,297,301,305,311,315,319,325,329,333,339,343,347,353,357,361,367,371,375,381,385,389,395,399,403,409,413,417,423,427,431,437,441,445,451,455,459,465
mul $0,2
mov $2,7
mul $2,$0
sub $0,1
mod $0,3
mul $0,2
add $0,$2
div $0,3
add $0,2
| 41.357143
| 378
| 0.708117
|
8198b63d1f49ca900e9cec10f4e4f98f69cd7757
| 765
|
asm
|
Assembly
|
oeis/077/A077410.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/077/A077410.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/077/A077410.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A077410: Combined Diophantine Chebyshev sequences A077249 and A077251.
; Submitted by Christian Krause
; 1,2,12,21,119,208,1178,2059,11661,20382,115432,201761,1142659,1997228,11311158,19770519,111968921,195707962,1108378052,1937309101,10971811599,19177383048,108609737938,189836521379,1075125567781,1879187830742,10642645939872,18602041786041,105351333830939,184141230029668,1042870692369518,1822810258510639,10323355589864241,18043961355076722,102190685206272892,178616803292256581,1011583496472864679,1768124071567489088,10013644279522373898,17502623912382634299,99124859298750874301
mov $2,10
lpb $0
sub $0,1
add $1,2
mov $3,$0
add $3,$0
mod $3,4
mul $3,$2
add $3,2
add $1,$3
add $2,$1
add $2,$1
lpe
add $2,$1
mov $0,$2
div $0,12
add $0,1
| 34.772727
| 482
| 0.798693
|
10c5da84cd3fc09fe33f24f94383475aabf68e62
| 7,680
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_21829_1304.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_21829_1304.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_21829_1304.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r15
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x1eda0, %rdx
nop
nop
nop
nop
xor %rcx, %rcx
movb (%rdx), %r14b
nop
nop
nop
xor %rdx, %rdx
lea addresses_D_ht+0x1eaa0, %rax
nop
xor %r12, %r12
mov $0x6162636465666768, %r15
movq %r15, (%rax)
nop
xor $16111, %r12
lea addresses_WT_ht+0xafd4, %rsi
lea addresses_WC_ht+0x15e14, %rdi
clflush (%rdi)
add $6687, %rdx
mov $41, %rcx
rep movsl
add $3033, %rdi
lea addresses_WT_ht+0x9218, %r14
nop
nop
nop
nop
cmp %rdx, %rdx
movups (%r14), %xmm5
vpextrq $1, %xmm5, %rax
nop
nop
and $35472, %r15
lea addresses_normal_ht+0x2048, %r12
nop
nop
inc %rdi
movl $0x61626364, (%r12)
add %rax, %rax
lea addresses_UC_ht+0x34a0, %r14
nop
nop
nop
nop
xor $42952, %rcx
movl $0x61626364, (%r14)
inc %r14
lea addresses_normal_ht+0x6ef0, %rdi
nop
nop
nop
xor %r14, %r14
mov (%rdi), %r12w
nop
nop
add $29563, %rax
lea addresses_D_ht+0x1a820, %rsi
nop
xor $51925, %r14
mov $0x6162636465666768, %rax
movq %rax, (%rsi)
nop
nop
add %r14, %r14
lea addresses_WT_ht+0x156e0, %r15
clflush (%r15)
nop
nop
cmp %rcx, %rcx
movb $0x61, (%r15)
nop
nop
and %rsi, %rsi
lea addresses_UC_ht+0x182a0, %rcx
xor $59838, %rsi
movl $0x61626364, (%rcx)
nop
nop
nop
nop
xor %r14, %r14
lea addresses_WT_ht+0x14a20, %rdi
nop
nop
nop
nop
xor $760, %rsi
mov (%rdi), %rcx
inc %rax
lea addresses_UC_ht+0xb5e6, %rsi
lea addresses_WT_ht+0x18fc0, %rdi
nop
nop
nop
add $3063, %rax
mov $119, %rcx
rep movsq
nop
nop
nop
nop
xor %rdi, %rdi
lea addresses_WT_ht+0x1020, %rdx
nop
nop
nop
nop
add $19973, %rsi
and $0xffffffffffffffc0, %rdx
vmovaps (%rdx), %ymm3
vextracti128 $1, %ymm3, %xmm3
vpextrq $1, %xmm3, %rcx
nop
nop
sub %r15, %r15
lea addresses_WT_ht+0xceb0, %r14
nop
nop
nop
inc %rax
mov $0x6162636465666768, %rdi
movq %rdi, %xmm3
vmovups %ymm3, (%r14)
nop
nop
nop
nop
add $26675, %rcx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r15
pop %r14
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r14
push %r15
push %rbx
push %rcx
push %rdi
// Load
lea addresses_A+0x1cdeb, %r11
nop
nop
sub $19660, %r15
mov (%r11), %r14d
nop
nop
nop
nop
xor $39465, %r11
// Faulty Load
lea addresses_WC+0x15020, %rdi
nop
nop
nop
add $35408, %rcx
movups (%rdi), %xmm6
vpextrq $1, %xmm6, %r15
lea oracles, %rcx
and $0xff, %r15
shlq $12, %r15
mov (%rcx,%r15,1), %r15
pop %rdi
pop %rcx
pop %rbx
pop %r15
pop %r14
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_WC'}, 'OP': 'LOAD'}
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_A'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 16, 'NT': False, 'type': 'addresses_WC'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_D_ht'}}
{'src': {'congruent': 2, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_WC_ht'}}
{'src': {'congruent': 3, 'AVXalign': False, 'same': True, 'size': 16, 'NT': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 4, 'NT': True, 'type': 'addresses_normal_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 5, 'AVXalign': False, 'same': True, 'size': 4, 'NT': False, 'type': 'addresses_UC_ht'}}
{'src': {'congruent': 4, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_D_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 4, 'AVXalign': False, 'same': True, 'size': 1, 'NT': False, 'type': 'addresses_WT_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_UC_ht'}}
{'src': {'congruent': 9, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 1, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_WT_ht'}}
{'src': {'congruent': 11, 'AVXalign': True, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_WT_ht'}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 34.909091
| 2,999
| 0.655469
|
80db5040886751e7efec119fae76484f9aa6bd00
| 234
|
asm
|
Assembly
|
libsrc/stdio/ansi/mc1000/f_ansi_bel.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/stdio/ansi/mc1000/f_ansi_bel.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/stdio/ansi/mc1000/f_ansi_bel.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
;
; ANSI Video handling for the CCE MC-1000
; By Stefano Bodrato - March 2013
;
; BEL - chr(7) Beep it out
;
;
; $Id: f_ansi_bel.asm,v 1.2 2015/01/19 01:33:18 pauloscustodio Exp $
;
PUBLIC ansi_BEL
.ansi_BEL
jp $C060
| 13.764706
| 68
| 0.641026
|
04693785af0d6bdca0a2ee411dd6bfc170a326bf
| 356
|
asm
|
Assembly
|
programs/oeis/066/A066481.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/066/A066481.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/066/A066481.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A066481: Largest anti-divisor of n.
; 2,3,3,4,5,5,6,7,7,8,9,9,10,11,11,12,13,13,14,15,15,16,17,17,18,19,19,20,21,21,22,23,23,24,25,25,26,27,27,28,29,29,30,31,31,32,33,33,34,35,35,36,37,37,38,39,39,40,41,41,42,43,43,44,45,45,46,47,47,48,49,49,50,51,51,52,53,53,54,55,55,56,57,57,58,59,59,60,61,61,62,63,63,64,65,65,66,67,67,68
mul $0,2
add $0,7
div $0,3
| 50.857143
| 289
| 0.648876
|
7fad21b05eeb71f751dd40340fae745bb4971c69
| 8,347
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0xca_notsx.log_21829_1936.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0xca_notsx.log_21829_1936.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0xca_notsx.log_21829_1936.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x1eed2, %rsi
lea addresses_UC_ht+0x142d2, %rdi
nop
nop
nop
xor %r11, %r11
mov $72, %rcx
rep movsw
nop
and %rdi, %rdi
lea addresses_UC_ht+0xd492, %rsi
lea addresses_D_ht+0x1063a, %rdi
nop
nop
nop
nop
add %r13, %r13
mov $71, %rcx
rep movsb
nop
nop
nop
xor %rsi, %rsi
lea addresses_A_ht+0x173f6, %rbp
nop
dec %r12
mov $0x6162636465666768, %r13
movq %r13, (%rbp)
nop
nop
nop
add $58381, %r12
lea addresses_WC_ht+0x18efe, %rcx
nop
nop
nop
nop
nop
cmp $23249, %rbp
movl $0x61626364, (%rcx)
nop
nop
nop
nop
dec %rsi
lea addresses_A_ht+0x17ed2, %r13
nop
nop
nop
nop
nop
and $18438, %rsi
mov $0x6162636465666768, %rdi
movq %rdi, %xmm3
vmovups %ymm3, (%r13)
nop
nop
nop
cmp $49144, %r11
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r13
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r13
push %r15
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
// Store
lea addresses_UC+0x62d2, %r12
sub $24443, %rsi
movw $0x5152, (%r12)
nop
nop
nop
nop
lfence
// Store
lea addresses_normal+0x92d2, %rbp
nop
and $22941, %rbx
movb $0x51, (%rbp)
nop
nop
nop
nop
nop
xor %r11, %r11
// Store
lea addresses_normal+0x92d2, %r13
nop
nop
nop
nop
nop
xor %rbp, %rbp
mov $0x5152535455565758, %r12
movq %r12, (%r13)
nop
nop
nop
add $55091, %r12
// REPMOV
lea addresses_UC+0x4a81, %rsi
lea addresses_UC+0xfdd2, %rdi
clflush (%rdi)
nop
xor $59162, %r15
mov $84, %rcx
rep movsb
nop
nop
nop
nop
nop
sub $41098, %rsi
// Store
lea addresses_WT+0x1ea12, %rbp
inc %r13
movw $0x5152, (%rbp)
nop
nop
nop
nop
and %rcx, %rcx
// Load
lea addresses_normal+0x92d2, %r13
nop
nop
nop
sub %rbp, %rbp
mov (%r13), %ecx
nop
nop
nop
add %rcx, %rcx
// Store
mov $0x2a3bcb0000000592, %r15
nop
nop
nop
add %rdi, %rdi
movw $0x5152, (%r15)
nop
nop
add %rsi, %rsi
// Store
lea addresses_normal+0x662e, %r15
nop
nop
add $40162, %rbp
movw $0x5152, (%r15)
nop
nop
nop
nop
sub $20289, %rdi
// Store
lea addresses_PSE+0x13ad2, %r12
add %r13, %r13
mov $0x5152535455565758, %rsi
movq %rsi, %xmm0
movups %xmm0, (%r12)
nop
nop
nop
nop
xor $33250, %r12
// Store
lea addresses_WC+0x19e36, %r13
nop
nop
nop
dec %rbx
mov $0x5152535455565758, %r12
movq %r12, %xmm4
vmovups %ymm4, (%r13)
nop
nop
nop
nop
nop
sub %r13, %r13
// Store
lea addresses_RW+0x1d476, %rcx
dec %r11
movw $0x5152, (%rcx)
nop
xor $16524, %r11
// Store
lea addresses_normal+0x92d2, %rbx
nop
add $49287, %rbp
mov $0x5152535455565758, %r12
movq %r12, %xmm3
vmovups %ymm3, (%rbx)
nop
nop
nop
add %r11, %r11
// Faulty Load
lea addresses_normal+0x92d2, %r12
nop
nop
nop
nop
xor $26835, %rbp
mov (%r12), %r13d
lea oracles, %rbx
and $0xff, %r13
shlq $12, %r13
mov (%rbx,%r13,1), %r13
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r15
pop %r13
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': True, 'size': 8, 'congruent': 0, 'same': False, 'type': 'addresses_normal'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 8, 'same': False, 'type': 'addresses_UC'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': True, 'type': 'addresses_normal'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': True, 'type': 'addresses_normal'}, 'OP': 'STOR'}
{'src': {'congruent': 0, 'same': False, 'type': 'addresses_UC'}, 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_UC'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 4, 'same': False, 'type': 'addresses_WT'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': True, 'type': 'addresses_normal'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 5, 'same': False, 'type': 'addresses_NC'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': True, 'size': 2, 'congruent': 1, 'same': False, 'type': 'addresses_normal'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 10, 'same': False, 'type': 'addresses_PSE'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 2, 'same': False, 'type': 'addresses_WC'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': True, 'size': 2, 'congruent': 2, 'same': False, 'type': 'addresses_RW'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': True, 'type': 'addresses_normal'}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': True, 'type': 'addresses_normal'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 9, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 6, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 3, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 2, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 1, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 10, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'}
{'58': 21829}
58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
| 29.390845
| 2,999
| 0.654007
|
9170378e69a79e1772d8184f28c2b33f7c515d79
| 2,162
|
asm
|
Assembly
|
misc/obj67.asm
|
kramlat/Open-Source-Sonic-ROM-Base
|
ba438ade0c74bc563aa83e4cd9cd08d4aded55af
|
[
"BSD-3-Clause"
] | 5
|
2021-01-20T21:26:30.000Z
|
2021-06-17T05:25:42.000Z
|
misc/obj67.asm
|
kramlat/Open-Source-Sonic-ROM-Base
|
ba438ade0c74bc563aa83e4cd9cd08d4aded55af
|
[
"BSD-3-Clause"
] | 4
|
2021-01-23T06:28:25.000Z
|
2021-05-13T08:40:57.000Z
|
misc/obj67.asm
|
ArcadeTV/msu-md-sonic2
|
23d24dda3758a1fd341c01e7f7e94e11780a2608
|
[
"CC0-1.0"
] | null | null | null |
off_273F2: offsetTable
offsetTableEntry.w word_2740C ; 0
offsetTableEntry.w word_27426 ; 1
offsetTableEntry.w word_27430 ; 2
offsetTableEntry.w word_2744A ; 3
offsetTableEntry.w word_27454 ; 4
offsetTableEntry.w word_2745E ; 5
offsetTableEntry.w word_27478 ; 6
offsetTableEntry.w word_27492 ; 7
offsetTableEntry.w word_274AC ; 8
offsetTableEntry.w word_274C6 ; 9
offsetTableEntry.w word_274E0 ; $A
offsetTableEntry.w word_274FA ; $B
offsetTableEntry.w word_27514 ; $C
word_2740C: obj1E67Size
dc.w $7A8, $270
dc.w $750, $270
dc.w $740, $280
dc.w $740, $3E0
dc.w $750, $3F0
dc.w $7A8, $3F0
word_2740C_End
word_27426: obj1E67Size
dc.w $C58, $5F0
dc.w $E28, $5F0
word_27426_End
word_27430: obj1E67Size
dc.w $1828, $6B0
dc.w $17D0, $6B0
dc.w $17C0, $6C0
dc.w $17C0, $7E0
dc.w $17B0, $7F0
dc.w $1758, $7F0
word_27430_End
word_2744A: obj1E67Size
dc.w $5D8, $370
dc.w $780, $370
word_2744A_End
word_27454: obj1E67Size
dc.w $5D8, $5F0
dc.w $700, $5F0
word_27454_End
word_2745E: obj1E67Size
dc.w $BD8, $1F0
dc.w $C30, $1F0
dc.w $C40, $1E0
dc.w $C40, $C0
dc.w $C50, $B0
dc.w $CA8, $B0
word_2745E_End
word_27478: obj1E67Size
dc.w $1728, $330
dc.w $15D0, $330
dc.w $15C0, $320
dc.w $15C0, $240
dc.w $15D0, $230
dc.w $1628, $230
word_27478_End
word_27492: obj1E67Size
dc.w $6D8, $1F0
dc.w $730, $1F0
dc.w $740, $1E0
dc.w $740, $100
dc.w $750, $F0
dc.w $7A8, $F0
word_27492_End
word_274AC: obj1E67Size
dc.w $7D8, $330
dc.w $828, $330
dc.w $840, $340
dc.w $840, $458
dc.w $828, $470
dc.w $7D8, $470
word_274AC_End
word_274C6: obj1E67Size
dc.w $FD8, $3B0
dc.w $1028, $3B0
dc.w $1040, $398
dc.w $1040, $2C4
dc.w $1058, $2B0
dc.w $10A8, $2B0
word_274C6_End
word_274E0: obj1E67Size
dc.w $FD8, $4B0
dc.w $1028, $4B0
dc.w $1040, $4C0
dc.w $1040, $5D8
dc.w $1058, $5F0
dc.w $10A8, $5F0
word_274E0_End
word_274FA: obj1E67Size
dc.w $2058, $430
dc.w $20A8, $430
dc.w $20C0, $418
dc.w $20C0, $2C0
dc.w $20D0, $2B0
dc.w $2128, $2B0
word_274FA_End
word_27514: obj1E67Size
dc.w $2328, $5B0
dc.w $22D0, $5B0
dc.w $22C0, $5A0
dc.w $22C0, $4C0
dc.w $22D0, $4B0
dc.w $2328, $4B0
word_27514_End
| 18.016667
| 35
| 0.676226
|
2590cdcfc0b556e0a1fb0babf6fcb54abc37e2f6
| 363
|
asm
|
Assembly
|
oeis/021/A021117.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/021/A021117.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/021/A021117.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A021117: Decimal expansion of 1/113.
; Submitted by Jon Maiga
; 0,0,8,8,4,9,5,5,7,5,2,2,1,2,3,8,9,3,8,0,5,3,0,9,7,3,4,5,1,3,2,7,4,3,3,6,2,8,3,1,8,5,8,4,0,7,0,7,9,6,4,6,0,1,7,6,9,9,1,1,5,0,4,4,2,4,7,7,8,7,6,1,0,6,1,9,4,6,9,0,2,6,5,4,8,6,7,2,5,6,6,3,7,1,6,8,1,4,1,5
add $0,1
mov $3,3
lpb $0
sub $0,1
add $2,$3
div $2,34
mul $3,10
lpe
mov $0,$2
mod $0,10
| 24.2
| 201
| 0.545455
|
7dc0e1e71823af2fc210ef621848f527aff8cb33
| 86,289
|
asm
|
Assembly
|
base/mvdm/dos/v86/cmd/keyb/keybi9c.asm
|
npocmaka/Windows-Server-2003
|
5c6fe3db626b63a384230a1aa6b92ac416b0765f
|
[
"Unlicense"
] | 17
|
2020-11-13T13:42:52.000Z
|
2021-09-16T09:13:13.000Z
|
base/mvdm/dos/v86/cmd/keyb/keybi9c.asm
|
sancho1952007/Windows-Server-2003
|
5c6fe3db626b63a384230a1aa6b92ac416b0765f
|
[
"Unlicense"
] | 2
|
2020-10-19T08:02:06.000Z
|
2020-10-19T08:23:18.000Z
|
base/mvdm/dos/v86/cmd/keyb/keybi9c.asm
|
sancho1952007/Windows-Server-2003
|
5c6fe3db626b63a384230a1aa6b92ac416b0765f
|
[
"Unlicense"
] | 14
|
2020-11-14T09:43:20.000Z
|
2021-08-28T08:59:57.000Z
|
PAGE ,132
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; (C) Copyright Microsoft Corp. 1987-1990
;; MS-DOS 5.00 - NLS Support - KEYB Command
;;
; File Name: KEYBI9C.ASM
; ----------
;
;
; Description:
; ------------
; Interrupt 9 mainline.
; This routine handles all US keyboard support for the following
; system units: PC, PC-XT, PC-AT, PC Convertible, PC-XT/286
; Models 25 and 30 (PALACE),
; PS/2's - all 8042 based 80286, 80386 and 80486.
; - all PATRIOT and SEBRING based systems.
; KEYB_STATE_PROCESSOR is called for non-US keyboard support.
;
;
;
; Procedures Contained in This File:
; ----------------------------------
; KEYB_INT_9 - Interrupt 9
;
; External Procedure References:
; ------------------------------
; FROM FILE KEYBI9.ASM:
; KEYB_STATE_PROCESSOR - Non US keyboard support.
;
; Linkage Information: Refer to file KEYB.ASM
; --------------------
;
; Change History:
; ---------------
; ; - DCR 478 - KEYBOARD INT SPLICING Nick Savage ;deleted by AN005
; ; - PTM 3090 ENABLING RIGHT CTL FOR RE-BOOTING
; ; - PTM 60XX PICK UP ALL KEYBOARD BIOS PTR's AND DCR's TO BRING
; INT 9h UP TO THE TOPHAT (80486) SUPPORT LEVEL. '89 jwg
; PTR 6600736 Keep INT's disabled till after PORT 60h read.
; PTR 6600756 EXTRA EOI ISSUED IF INTERRUPTS SATURATED **********
; NOTE: This is a fix for a BIOS bug that goes all
; the way back to the first AT. The rationale for
; the fix is as follows:
; (deleted AN005) A stack frame is created upon entry (BP) and
; CHK_EOI is called to check the frame. If no
; EOI has been issued, CHK_EOI does it and
; resets the frame, preventing any additinal
; EOI's from being issued on subsequent calls
; to CHK_EOI. All direct EOI's in the code
; have been replaced with calls to CHK_EOI.
;
; ;Ax004; - PTM 2555 KEYB command locks keyboard. 10/5/89;cja
; ; jwg 11/09/98 Updates - Wild Mouse, etc workaround.....
; ; - PTM 5802 Restructure Interrupt Splicing to correct lost Mouse
; interrupt when LED's are updated. Make it apply to
; all systems. Essentially remove all code added by AN001.
; Remove stack frame logic of AN003 and PTR 6600756 and do
; an early EOI. Requires a CLI at K38B and other places.
; Remove Chk_ibf before 60h.
; Re-write ERROR_BEEP to make processor speed independent
; for AT and PS/2 systems and right tone if interrupts.
; Make SHIP_IT handle call on PC machines.
; Use BP to hold system flags during interrupt processing.
; PTR 6602049 Fix problem with Pause Key hanging system if Mouse
; driver is using polled mode. (Port 60h hangs.)
; PTR 6602247 Change JMP at K40 to stop extra Enable Keyboard cmd.
; PTR 6602319 Fix interrupt window on System Request key allowing
; following scan code(s) to be processed out of sequence.
; PTR 6602355 Fix Print Screen clearing E0 state flags too late.
; ; - ;deleted Add code the clear "Wild Mouse" condition at PAUSE wait.
; ; - PTM 6660 Move determination code for original PC1 to COMMSUBS.ASM
; - ;jwg 2/90 Add Patriot/Sebring HOT REPLUG code so keyboard can be
; switched back to Scan Code Set 1 if repluged. LIB LITE
; ; - PTM 6680 Remove code attempting to re-sync BIOS flags with reset
; Keyboard. Test case simulators can/are sending invalid
; sequence of AA,AA. Must leave BIOS flags alone on POR.
; ; - PTM 6716 MicroSoft WORKS (German version) reentrancy problem with
; - ;jwg 3/90 NLS state processor and save scan code. LED update ACK
; overlays memory before NLS processing of scan code.
; Remove AN006 "Wild Mouse" reset code, field tests done.
; ; - PTM ???? Fix read ID logic to recognize 122 keyboards and set the
; ;jwg 8/90 KBX flag on any enhansed keyboard.
; ; - PTM ???? Add 122 Keyboard key support tables.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
INCLUDE KEYBEQU.INC
INCLUDE DSEG.INC ; System data segments
INCLUDE POSTEQU.INC ; System equates
INCLUDE KEYBSHAR.INC
INCLUDE KEYBI2F.INC
INCLUDE KEYBI9.INC
INCLUDE KEYBCPSD.INC
INCLUDE KEYBCMD.INC
include bop.inc
include vint.inc
PUBLIC KEYB_INT_9
PUBLIC K8 ; CTRL case tables
PUBLIC SCAN_CODE
PUBLIC BUFFER_FILL
PUBLIC COUNTRY_FLAG
PUBLIC COPY_NLS1_FLAG ;; (YST)
PUBLIC BEEP_PENDING
PUBLIC ERROR_BEEP
PUBLIC CHK_IBF
ifdef JAPAN
PUBLIC S_122_MARKER ; 122 KEYBOARD F8/00 marker
PUBLIC BEEP_DELAY ; Error beep delay, default=19
PUBLIC SCAN_CODE_SET ; Keyboard Scan Code Set in use
PUBLIC READ_ID2 ; Second byte read on last READ ID
endif ; JAPAN
ID_1 EQU 0ABH ; 1ST ID CHARACTER FOR KBX
TID_2 EQU 041H ; US G-LAYOUT
TID_2A EQU 054H ; US P-LAYOUT
;UNTRANSLATED 2ND ID CHAR FOR KBDX
ID_2U EQU 083H ; US G-LAYOUT (PATRIOT)
ID_2AU EQU 084H ; US P-LAYOUT (PATRIOT)
ID_122 EQU 086H ; 2ND ID CHARACTER FOR 122-KEYBOARD
ID_2JG EQU 090H ; JPN G-LAYOUT
ID_2JP EQU 091H ; JPN P-LAYOUT
ID_2JA EQU 092H ; JPN A-LAYOUT
ifdef JAPAN
S_XKBD_SCAN EQU 0A6h ; Highest Character Code For Enhanced
S_122_MARK EQU 0F8h ; Marker for EXTENDED 122 keys DCR 1815
endif ; JAPAN
DIAGS SEGMENT AT 0FFFFH
ORG 0
RESET LABEL FAR
DIAGS ENDS
CODE SEGMENT PUBLIC 'CODE'
ASSUME CS:CODE,DS:DATA
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; TABLE OF SHIFT KEYS AND MASK VALUES
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;------ KEY_TABLE
K6 LABEL BYTE
DB INS_KEY ; INSERT KEY
DB CAPS_KEY,NUM_KEY,SCROLL_KEY,ALT_KEY,CTL_KEY
DB LEFT_KEY,RIGHT_KEY
K6L EQU $-K6
;------ MASK_TABLE
K7 LABEL BYTE
DB INS_SHIFT ; INSERT MODE SHIFT
DB CAPS_SHIFT,NUM_SHIFT,SCROLL_SHIFT,ALT_SHIFT,CTL_SHIFT
DB LEFT_SHIFT,RIGHT_SHIFT
;---------- TABLES FOR ALT CASE -----
;------ ALT-INPUT-TABLE
K30 LABEL BYTE
DB 82,79,80,81,75
DB 76,77,71,72,73 ; 10 NUMBERS ON KEYPAD
;------ SUPER-SHIFT-TABLE
DB 16,17,18,19,20,21 ; A-Z TYPEWRITER CHARS
DB 22,23,24,25,30,31
DB 32,33,34,35,36,37
DB 38,44,45,46,47,48
DB 49,50
K30_LEN EQU $-K30-10
;------ ALT-INPUT-FUNCTION-TABLE 53H - 7EH
K30A LABEL BYTE
DB -1,-1,-1,-1,139,140 ; Del, SysReq, Undef, WT, F11, F12
DB -1,235,218,219,220 ; Undef, PA1, F13, F14, F15
DB -1,-1,-1,-1,-1 ; Pause, Undef 5F-62
DB 221,222,223,226,227 ; F16, F17, F18, F19, F20,
DB 228,229,230,231 ; F21, F22, F23, F24,
DB -1,243,-1,-1 ; K#69, ErEOF, Break, Play,
DB -1,-1,-1,-1,-1 ; Undef, Attn, CrSel, K#56, ExSel
DB -1,253 ; K#74, Clear,
ifdef NOT_NTVDM
;;* DB -1,-1,-1 ; Undef, K#109, Undef
;;* DB -1,-1,-1,-1,-1 ; Undef, Undef, K#94, K#14, Undef
else
DB -1,-1,-1 ; Undef, K#109, Undef
DB -1,-1,-1,-1,-1 ; Undef, Undef, K#94, K#14, K#107
endif
ifdef JAPAN
DB -1 ; 07Eh, 07Fh. DBCS Pseudo codes.
; H_LAST_SCAN must be 07Fh for DBCS
endif ; JAPAN
H_LAST_SCAN EQU $-K30A+52h ; Largest valid scan code in table
; K30A K8 K15 K14 must have same ends
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; K8 is overlaid by K8_RPL (from module KEYB_COMMAND)
; if extended INT 16 support is available
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
K8 LABEL BYTE ;-------- CHARACTERS ---------
DB 27,-1,00,-1,-1,-1 ; Esc, 1, 2, 3, 4, 5
DB 30,-1,-1,-1,-1,31 ; 6, 7, 8, 9, 0, -
DB -1,127,-1,17,23,5 ; =, Bksp, Tab, Q, W, E
DB 18,20,25,21,09,15 ; R, T, Y, U, I, O
DB 16,27,29,10,-1,01 ; P, [, ], Enter, Ctrl, A
DB 19,04,06,07,08,10 ; S, D, F, G, H, J
DB 11,12,-1,-1,-1,-1 ; K, L, ;, ', `, LShift
DB 28,26,24,03,22,02 ; \, Z, X, C, V, B
DB 14,13,-1,-1,-1,-1 ; N, M, ,, ., /, RShift
DB '*',-1,' ',-1 ; *, Alt, Space, CL
;--------- FUNCTIONS ---------
DB 94,95,96,97,98,99 ; F1 - F6
DB 100,101,102,103,-1,-1 ; F7 - F10, NL, SL
DB 119,-1,132,-1,115,-1 ; Home, Up, PgUp, -, Left, Pad5
DB 116,-1,117,-1,118,-1 ; Right, +, End, Down, PgDn, Ins
DB -1,-1,-1,-1,137,138 ; Del, SysReq, Undef, WT, F11, F12
;---------- 122 KEYBOARD not overlaid
DB -1,234,206,207,208 ; Undef, PA1, F13, F14, F15
DB -1,-1,-1,-1,-1 ; Pause, Undef 5F-62
DB 209,210,211,212,213 ; F16, F17, F18, F19, F20,
DB 214,215,216,217 ; F21, F22, F23, F24,
DB -1,242,-1,-1 ; K#69, ErEOF, Break, Play,
DB -1,-1,-1,-1,-1 ; Undef, Attn, CrSel, K#56, ExSel
DB -1,252 ; K#74, Clear,
ifdef NOT_NTVDM
;;* DB -1,-1,-1 ; Undef, K#109, Undef
;;* DB -1,-1,-1,-1,-1 ; Undef, Undef, K#94, K#14, Undef
else
DB -1,-1,-1 ; Undef, K#109, Undef
DB -1,-1,-1,-1,-1 ; Undef, Undef, K#94, K#14, K#107
endif
ifdef JAPAN
DB -1 ; 07Eh, 07Fh. DBCS Pseudo codes.
endif ; JAPAN
;----- TABLES FOR LOWER CASE (USA) --
K10 LABEL BYTE
DB 27,'12345'
DB '67890-'
DB '=',08,09,'qwe'
DB 'rtyuio'
DB 'p[]',0DH,-1,'a' ; LETTERS, Return, Ctrl
DB 'sdfghj'
DB "kl;'`",-1 ; LETTERS, L Shift
DB '\zxcvb'
DB 'nm,./'
DB -1,'*',-1,' \' ; R Shift, *, Alt, Sp, CL (REALLY WT KEY)
;------ LC TABLE SCAN
DB 59,60,61,62,63 ; BASE STATE OF F1 - F10
DB 64,65,66,67,68
DB -1,-1 ; NL, SL
;------ KEYPAD TABLE
K15 LABEL BYTE
DB 71,72,73,-1,75,-1 ; Home, Up, PgUp, -1, Left, -1
DB 77,-1,79,80,81,82 ; Right, -1, End, Down, PgDn, Ins
DB 83 ; Del
DB -1,-1,'\',133,134 ; SysRq, Undef, WT, F11, F12
ifndef JAPAN
DB -1,232,182,183,184 ; Undef, PA1, F13, F14, F15
else ; JAPAN
DB -1,232,236,237,238 ; Undef, PA1, F13, F14, F15
endif ; JAPAN
DB -1,-1,-1,-1,-1 ; Pause, Undef 5F-62
ifndef JAPAN
DB 185,186,187,188,189 ; F16, F17, F18, F19, F20,
DB 190,191,192,193 ; F21, F22, F23, F24,
else ; JAPAN
DB 239,244,245,246,247 ; F16, F17, F18, F19, F20,
DB 248,249,250,192 ; F21, F22, F23, F24,
endif ; JAPAN
DB -1,240,-1,-1 ; K#69, ErEOF, Break, Play,
DB -1,-1,-1,-1,-1 ; Undef, Attn, CrSel, K#56, ExSel
DB -1,251 ; K#74, Clear,
ifdef NOT_NTVDM
;;* DB -1,-1,-1 ; Undef, K#109, Undef
;;* DB -1,-1,-1,-1,-1 ; Undef, Undef, K#94, K#14, Undef
else
DB -1,-1,-1 ; Undef, K#109, Undef
DB -1,-1,-1,-1,-1 ; Undef, Undef, K#94, K#14, K#107
endif
ifdef JAPAN
DB -1 ; 07Eh, 07Fh. DBCS Pseudo codes.
endif ; JAPAN
;------- TABLES FOR UPPER CASE (USA)
K11 LABEL BYTE
DB 27,'!@#$%'
DB '^&*()_'
DB '+',08,00,'QWE'
DB 'RTYUIO'
DB 'P{}',0DH,-1,'A' ; LETTERS, Return, Ctrl
DB 'SDFGHJ'
DB 'KL:"~',-1 ; LETTERS, L Shift
DB '|ZXCVB'
DB 'NM<>?'
DB -1,'*',-1,' |' ; R Shift, *, Alt, Sp, CL (REALLY WT KEY)
;------ UC TABLE SCAN
K12 LABEL BYTE
DB 84,85,86,87,88 ; SHIFTED STATE OF F1 - F10
DB 89,90,91,92,93
DB -1,-1 ; NL, SL
;------ NUM STATE TABLE
K14 LABEL BYTE
DB '789-456+1230.' ; NUMLOCK STATE OF KEYPAD KEYS
DB -1,-1,'|',135,136 ; SysRq, Undef, WT, F11, F12
ifndef JAPAN
DB -1,233,194,195,196 ; Undef, PA1, F13, F14, F15
else ; JAPAN
DB -1,233,193,195,196 ; Undef, PA1, F13, F14, F15
endif ; JAPAN
DB -1,-1,-1,-1,-1 ; Pause, Undef 5F-62
DB 197,198,199,200,201 ; F16, F17, F18, F19, F20,
DB 202,203,204,205 ; F21, F22, F23, F24,
DB -1,241,-1,-1 ; K#69, ErEOF, Break, Play,
DB -1,-1,-1,-1,-1 ; Undef, Attn, CrSel, K#56, ExSel
DB -1,251 ; K#74, Clear,
ifdef NOT_NTVDM
;;* DB -1,-1,-1 ; Undef, K#109, Undef
;;* DB -1,-1,-1,-1,-1 ; Undef, Undef, K#94, K#14, Undef
else
DB -1,-1,-1 ; Undef, K#109, Undef
DB -1,-1,-1,-1,-1 ; Undef, Undef, K#94, K#14, K#107
endif
ifdef JAPAN
DB -1 ; 07Eh, 07Fh. DBCS Pseudo codes.
endif ; JAPAN
PAGE
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Procedure: KEYB_INT_9
;
; Description:
; Entry point for interrupt 9 processing.
;
; Input Registers:
; None
;
; Output Registers:
; None
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
EVEN ; Keep KEYB_INT_9 entry on even boundry
BEEP_PENDING DB NO ; YES if a beep is needed
SCAN_CODE DB 0 ; Last SCAN code read
KEYB_INT_9 PROC NEAR
JMP SHORT KB_INT_1 ;; (YST)
COPY_NLS1_FLAG DB 0 ;; (YST)
COUNTRY_FLAG DB -1 ; WHERE THE INT9 VECTOR POINTS
ifdef JAPAN
READ_ID2 DB 0 ; Second byte from last READ ID
BEEP_DELAY DW 19 ; Error beep delay, 19=Refresh loop,
; the half cycle time for 1745 hz
SCAN_CODE_SET DB 01h ; In case of old DBCS keyboards, this
; may be 81h or 82h. Default is 01
S_122_MARKER DB 0F8h ; Marker for 122-KEYBOARD KEYS DCR 1815
; Changed to E0 depending on INT 16h
EVEN ; Force to even location
endif ; JAPAN
KB_INT_1:
; Do NOT enable interrupts untill after
; PORT 60h has been read. INT 15h has
; interrupt window, do EOI, fast pass.
PUSH BP ; Reserved in KEYBi9c for SD.SYSTEM_FLAG
PUSH AX
PUSH BX
PUSH CX
PUSH DX
PUSH SI
PUSH DI
PUSH DS
PUSH ES
CLD ; FORWARD DIRECTION
MOV BX,DATA ; SET UP ADDRESSING
MOV DS,BX ; DS POINTS AT THE ROM BIOS DATA AREA
MOV BP,CS:SD.SYSTEM_FLAG ; GET CS:SD.SYSTEM_FLAG, AND USE BP
ifdef NOT_NTVDM
;/* -- WAIT TILL KEYBOARD DISABLE COMMAND CAN BE ACCEPTED
MOV AL,DIS_KBD ; DISABLE THE KEYBOARD COMMAND
CALL SHIP_IT ; EXECUTE DISABLE
else
mov ah, 1 ; notify I9 entry to softpc
BOP 09h
nop ; Carbon copy traces for
nop ; "in al,PORT_A"
endif ; keep it traceable
IN AL,PORT_A ; READ IN THE CHARACTER
;/* -- SYSTEM HOOK INT 15H - FUNCTION 4FH (ON HARDWARE INTERRUPT LEVEL 9H)
MOV AH,04FH ; SYSTEM INTERCEPT - KEY CODE FUNCTION
STC ; SET CY= 1 (IN CASE OF IRET)
INT 15H ; CASSETTE CALL (AL)= KEY SCAN CODE
; RETURNS CY= 1 FOR INVALID FUNCTION
ifdef NOT_NTVDM
; EARLY EOI for all interrupts done
; after INT 15h to prevent re-entrancy
XCHG BX,AX ; SAVE SCAN CODE
MOV AL,EOI ; END OF INTERRUPT COMMAND (EARLY EOI)
OUT INTA00,AL ; SEND EOI TO INTERRUPT CONTROL PORT
XCHG BX,AX ; RECOVER SCAN CODE
endif
JC KB_INT_02 ; CONTINUE IF CARRY FLAG SET ((AL)=CODE)
JMP K26 ; EXIT IF SYSTEM HANDLED SCAN CODE
; EXIT HANDLES ENABLE
;/* --- CHECK FOR A POSSIBLE HOT REPLUG AND A POR COMPLETE CODE
KB_INT_02: ; (AL)= SCAN CODE
ifdef NOT_NTVDM
; ntvdm we don't do keyboard resets\power on stuff
;
; CHECK FOR POR
CMP AL,KB_OK ; CHECK FOR POSSIBLE KEYBOARD POR CHAR
JNE KB_INT_03 ; CONTINUE NOT A POR OF AA
; CHECK FOR ENHANSED KEYB
TEST KB_FLAG_3,LC_E0 ; WAS E0h LAST SCAN CODE? DCR467
JNZ KB_INT_03 ; SKIP KB POR IF IT WAS
; CHECK FOR LEFT SHIFT BREAK
TEST KB_FLAG,LEFT_SHIFT ; IS LEFT SHIFT ACTIVE?
JNZ KB_INT_03 ; SKIP KB POR IF IT WAS
; KEYBOARD POWER ON DETECTED
MOV CS:BEEP_PENDING,YES ; INDICATE WE NEED A BEEP
MOV KB_FLAG_2,0 ; CLEAR ALL LED FLAGS TO FORCE UPDATE
; LEAVE OTHERS SO KB SIMULATORS WORK
TEST BP,PS_8042 ; SYSTEM USING 8042 & SCAN CODE SET 01?
JZ KB_INT_03 ; SKIP IF SYSTEM USES DEFAULT SCS 02
; PATRIOT/SEBRING 8042 GATE ARRAY
MOV AL,SCAN_CODE_CMD ; SELECT SCAN CODE SET COMMAND
CALL SND_DATA ; SEND IT DIRECTLY TO THE KEYBOARD
MOV AL,01h ; SELECT SCAN CODE SET 01
CALL SND_DATA ; SEND IT TO THE KEYBOARD
MOV AL,KB_OK ; RESTORE POR SCAN CODE IN (AL)
endif
KB_INT_03:
;/* --- CHECK FOR A RESEND COMMAND TO KEYBOARD
;; NTVDM STI ; ENABLE INTERRUPTS AGAIN
CMP AL,KB_RESEND ; IS THE INPUT A RESEND
JE KB_INT_4 ; GO IF RESEND
;/* --- CHECK FOR RESPONSE TO A COMMAND TO KEYBOARD
CMP AL,KB_ACK ; IS THE INPUT AN ACKNOWLEDGE
JNZ KB_INT_2 ; GO IF NOT
;/* --- A COMMAND TO THE KEYBOARD WAS ISSUED
;; NTVDM CLI ; DISABLE INTERRUPTS
OR KB_FLAG_2,KB_FA ; INDICATE ACK RECEIVED
JMP K26 ; RETURN IF NOT (ACK RETURNED FOR DATA)
;/* --- RESEND THE LAST BYTE
KB_INT_4:
;; NTVDM CLI ; DISABLE INTERRUPTS
OR KB_FLAG_2,KB_FE ; INDICATE RESEND RECEIVED
JMP K26 ; RETURN IF NOT (ACK RETURNED FOR DATA)
;/* --- UPDATE MODE INDICATORS IF CHANGE IN STATE
KB_INT_2:
PUSH AX ; SAVE DATA IN
CALL MAKE_LED ; GO GET MODE INDICATOR DATA BYTE
MOV BL, KB_FLAG_2 ; GET PREVIOUS BITS
XOR BL,AL ; SEE IF ANY DIFFERENT
AND BL,KB_LEDS ; ISOLATE INDICATOR BITS
JZ UP0 ; IF NO CHANGE BYPASS UPDATE
CALL SND_LED ; GO TURN ON MODE INDICATORS
UP0: POP AX ; RESTORE DATA IN
;---------------------------------------------------------------------
; START OF KEY PROCESSING -
;---------------------------------------------------------------------
MOV AH,AL ; SAVE SCAN CODE IN AH ALSO
; END OF RE-ENTRANT CODE PATHS
MOV CS:SCAN_CODE,AL ; SAVE SCAN CODE TO BE PROCESSED BY KEYB
;------ TEST FOR OVERRUN SCAN CODE FROM KEYBOARD
CMP AL,KB_OVER_RUN ; IS THIS AN OVERRUN CHAR?
JNZ K16 ; NO, TEST FOR SHIFT KEY
MOV CS:BEEP_PENDING,YES
JMP K26 ; BUFFER_FULL_BEEP, EXIT
K16:
PUSH CS
POP ES ; ESTABLISH ADDRESS OF TABLES
MOV BH, KB_FLAG_3 ; LOAD FLAGS FOR TESTING
;------ TEST TO SEE IF A READ_ID IS IN PROGRESS
TEST BH,RD_ID+LC_AB ; ARE WE DOING A READ ID?
JZ NOT_ID ; CONTINUE IF NOT
JNS TST_ID_2 ; IS THE RD_ID FLAG ON?
CMP AL,ID_1 ; IS THIS THE 1ST ID CHARACTER?
JNE RST_RD_ID
OR KB_FLAG_3,LC_AB ; INDICATE 1ST ID WAS OK
RST_RD_ID:
AND KB_FLAG_3,NOT RD_ID ; RESET THE READ ID FLAG
JMP SHORT ID_EX ; AND EXIT
;------ CHECK 2ND US KBD ID - FOR SETTING NUM LOCK ON
TST_ID_2:
AND KB_FLAG_3,NOT LC_AB ; RESET FLAG
OR KB_FLAG_3,KBX ; INDICATE ENHANCED KEYBOARD WAS FOUND
ifdef JAPAN
; If it responds to a read ID command
MOV CS:READ_ID2,AL ; Save ID just read for ID checks
endif ; JAPAN
CMP AL,TID_2 ; IS THIS US G-LAYOUT KBD w 8042
JE NUM_LOCK_000 ; JUMP IF SO
CMP AL,ID_2U ; IS THIS US G-LAYOUT KBD w/o 8042
JE NUM_LOCK_000 ; JUMP IF SO
CMP AL,ID_122 ; IS THIS THE 122 KEY ENHANCED KEYBOARD
JE NUM_LOCK_000 ; JUMP IF SO
;------ CHECK 2ND JAPANESE KBD ID ;DCR355
CMP AL,ID_2JG ; IS THIS JPN KBD - G ?
JE NUM_LOCK_000 ; JUMP IF SO
CMP AL,ID_2JA ; IS THIS JPN KBD - A ?
JNE ID_EX ; EXIT IF NUM LOCK NOT REQUIRED
; These ID's do not set NUM LOCK ON
; ID_2AU = US P-LAYOUT KBD w/o 8042
; TID_2A = US P-LAYOUT KBD w 8042
; ID_2JP = JPN KBD - P
;------ A READ ID SAID THAT IT WAS ENHANCED KEYBOARD
NUM_LOCK_000:
TEST BH,SET_NUM_LK ; SHOULD WE SET NUM LOCK?
JZ ID_EX ; EXIT IF NOT
OR KB_FLAG,NUM_STATE ; FORCE NUM LOCK ON
CALL SND_LED ; GO SET THE NUM LOCK INDICATOR
ID_EX:
JMP K26 ; EXIT
PAGE
NOT_ID:
ifdef JAPAN
; M005 -- Kermit merge changes + AN013 ;AN013
TEST BP,DBCS_OK ; Is a DBCS keyboard active? ;JP9009;AN013
JZ NOT_DBCS ; Skip DBCS shift case checks ;AN013
MOV BL,KB_FLAG ; Get shift key state flags now ;JP9009;AN013
; ntraid:mskkbug#3516: Alt+Capslock does not work 11/9/93 yasuho
CALL DBCS_keyboard_support ; Go check for special shift key;JP9009;AN013
; We can't call because this is edited
; scan code directly. I comment it.
; 8/31/93 NT-J
NOT_DBCS: ;AN013
; M005 -- End changes + AN013
endif ; JAPAN
CMP AL,MC_E0 ; IS THIS THE GENERAL MARKER CODE?
JNE TEST_E1
OR KB_FLAG_3,LC_E0+KBX ; SET FLAG BIT, SET KBX, AND
JMP SHORT EXIT ; THROW AWAY THIS CODE
TEST_E1:
CMP AL,MC_E1 ; IS THIS THE PAUSE KEY?
JNE NOT_HC
OR KB_FLAG_3,LC_E1+KBX ; SET FLAG, PAUSE KEY MARKER CODE
EXIT: JMP K26A ; THROW AWAY THIS CODE
NOT_HC:
AND AL,07FH ; TURN OFF THE BREAK BIT
TEST BH,LC_E0 ; LAST CODE THE E0 MARKER CODE?
JZ NOT_LC_E0 ; JUMP IF NOT
MOV CX,2 ; LENGTH OF SEARCH
MOV DI,OFFSET K6+6 ; IS THIS A SHIFT KEY?
REPNE SCASB ; CHECK IT
JNE K16A ; NO, CONTINUE KEY PROCESSING
JMP SHORT K16B ; YES, THROW AWAY & RESET FLAG
NOT_LC_E0:
TEST BH,LC_E1 ; LAST CODE THE E1 MARKER CODE?
JZ T_SYS_KEY ; JUMP IF NOT
MOV CX,4 ; LENGTH OF SEARCH
MOV DI,OFFSET K6+4 ; IS THIS AN ALT, CTL, OR SHIFT?
REPNE SCASB ; CHECK IT
JE EXIT ; THROW AWAY IF SO
CMP AL,NUM_KEY ; IS IT THE PAUSE KEY?
JNE K16B ; NO, THROW AWAY & RESET FLAG
TEST AH,80H ; YES, IS IT THE BREAK OF THE KEY?
JNZ K16B ; YES, THROW THIS AWAY, TOO
TEST KB_FLAG_1,HOLD_STATE ; NO, ARE WE PAUSED ALREADY?
JNZ K16B ; YES, THROW AWAY
JMP K39P ; NO, THIS IS THE REAL PAUSE STATE
PAGE
;------ TEST FOR SYSTEM KEY
T_SYS_KEY:
CMP AL,SYS_KEY ; IS IT THE SYSTEM KEY?
JNE K16A ; CONTINUE IF NOT
TEST AH,080H ; CHECK IF THIS A BREAK CODE
;; NTVDM CLI ; DISABLE INTERRUPTS PTR 6602319
JNZ K16C ; DON'T TOUCH SYSTEM INDICATOR IF TRUE
TEST KB_FLAG_1,SYS_SHIFT ; SEE IF IN SYSTEM KEY HELD DOWN
JNZ K16B ; IF YES, DON'T PROCESS SYSTEM INDICATOR
OR KB_FLAG_1,SYS_SHIFT ; INDICATE SYSTEM KEY DEPRESSED
ifdef NOT_NTVDM
MOV AL,ENA_KBD ; INSURE KEYBOARD IS ENABLED
CALL SHIP_IT ; EXECUTE ENABLE
else
mov ah, 3 ; K27A exit notify
BOP 09h
endif
MOV AX,08500H ; FUNCTION VALUE FOR MAKE OF SYSTEM KEY
INT 15H ; USER INTERRUPT
JMP K27A ; END PROCESSING
K16B: JMP K26 ; IGNORE SYSTEM KEY
K16C: AND KB_FLAG_1,NOT SYS_SHIFT; TURN OFF SHIFT KEY HELD DOWN
ifdef NOT_NTVDM
MOV AL,ENA_KBD ; INSURE KEYBOARD IS ENABLED
CALL SHIP_IT ; EXECUTE ENABLE
else
mov ah, 3 ; K27A exit notify
BOP 09h
endif
MOV AX,08501H ; FUNCTION VALUE FOR BREAK OF SYSTEM KEY
INT 15H ; USER INTERRUPT
JMP K27A ; IGNORE SYSTEM KEY
PAGE
;------ TEST FOR SHIFT KEYS
;
; HERE IS WHERE KB_FLAGS ARE SET. WHAT HAPPENS IS, THE SYSTEM SEARCHES TABLE
; 'K6' FOR THE KEY. IF FOUND, IT GETS THE APPROPRIATE BIT FROM TABLE 'K7'
; AND SETS IT ON. (TABLES ARE ALL AT THE TOP OF THIS ROUTINE) FLAGS FOR THE
; SECOND ALT AND CTRL ARE SET IN KB_FLAG_3 AND HAVE THE SAME BIT POSITIONS AS
; THEIR ORIGINAL COUNTERPARTS IN KB_FLAG
K16A: MOV BL, KB_FLAG ; PUT STATE FLAGS IN BL
MOV DI,OFFSET K6 ; SHIFT KEY TABLE
MOV CX,K6L ; LENGTH
REPNE SCASB ; LOOK THROUGH THE TABLE FOR A MATCH
MOV AL,AH ; RECOVER SCAN CODE
JE K17 ; JUMP IF MATCH FOUND
JMP K25 ; IF NO MATCH, THEN SHIFT NOT FOUND
;------ SHIFT KEY FOUND
K17: SUB DI,OFFSET K6+1 ; ADJUST PTR TO SCAN CODE MTCH
MOV AH,CS:K7[DI] ; GET MASK INTO AH
MOV CL,2 ; SET UP COUNT FOR FLAG SHIFTS
TEST AL,80H ; TEST FOR BREAK KEY
JZ K17C
JMP K23 ; JUMP IF BREAK
;------ SHIFT MAKE FOUND, DETERMINE SET OR TOGGLE
K17C: CMP AH,SCROLL_SHIFT
JAE K18 ; IF SCROLL SHIFT OR ABOVE, TOGGLE KEY
;------ PLAIN SHIFT KEY, SET SHIFT ON
CMP COUNTRY_FLAG,0FFh ; ARE WE IN FOREIGN LANG MODE?
JNE K17C1 ; NO, US MODE, JUMP
CMP AL,ALT_KEY ; IS THIS THE ALT KEY?
JNE K17C1 ; NO, NORMAL KEY
;**CNS
K17C1: OR KB_FLAG,AH ; TURN ON SHIFT BIT
K17C2: TEST AH,CTL_SHIFT+ALT_SHIFT ; IS IT ALT OR CTRL?
JZ K17F ; NO, JUMP
K17D: TEST BH,LC_E0 ; IS THIS ONE OF THE NEW KEYS?
JZ K17E ; NO, JUMP
OR KB_FLAG_3,AH ; SET BITS FOR RIGHT CTRL, ALT
; JMP K26 ; INTERRUPT_RETURN
jmp short K17G ; (YST)
K17E: SHR AH,CL ; MOVE FLAG BITS TWO POSITIONS
OR KB_FLAG_1,AH ; SET BITS FOR LEFT CTRL, ALT
; JMP K26 ; INTERRUPT RETURN
jmp short K17G ; (YST)
K17F:
TEST CS:SD.SPECIAL_FEATURES,TYPEWRITER_CAPS_LK
JZ K17G ; N..all done
CMP COUNTRY_FLAG,0FFh ; ARE WE IN LANG MODE?
JNE K17G ; NO, ALL DONE WITH SHIFT KEY
;------ If keyboard is P12 then we still need to release caps_lk
TEST BP,PC_LAP ; IS THIS A P12 KEYBOARD?
JNZ REMOVE_CAPS_SHIFT
TEST BH,KBX ; THIS THE ENHANCED KEYBOARD?
JZ K17G ; NO, ALL DONE WITH SHIFT KEY
REMOVE_CAPS_SHIFT:
AND KB_FLAG,NOT CAPS_SHIFT ; YES, TAKE KB OUT OF C_L STATE
CALL SND_LED ; AND UPDATE THE LED INDICATORS
K17G:
; ===========================================
; Russian Keyboard (YST)
; ===========================================
CMP COUNTRY_FLAG,0FFh ; ARE WE IN FOREIGN LANG MODE? (YST)
JNE K17H ; NO, US MODE, RETURN (YST)
TEST CS:SD.SPECIAL_FEATURES,SHIFTS_TO_LOGIC; CAN OUR STATE (YST)
; LOGIC SUPPORT THIS CALL? (YST)
JZ K17H ; NO, RETURN (YST)
OR CS:FLAGS_TO_TEST[EXT_KB_FLAG_ID],SHIFTS_PRESSED; (YST)
; SET FLAG FOR STATE LOGIC (YST)
CALL KEYB_STATE_PROCESSOR ; ******** (YST)
AND CS:FLAGS_TO_TEST[EXT_KB_FLAG_ID],NOT SHIFTS_PRESSED; (YST)
; CLEAR FLAG AFTER USE (YST)
; ===========================================
; End of Russian Keyboard (YST)
; ===========================================
K17H: JMP K26 ; RETURN
;------ TOGGLED SHIFT KEY, TEST FOR 1ST MAKE OR NOT
K18: ; SHIFT-TOGGLE
TEST BL,CTL_SHIFT ; CHECK CTL SHIFT STATE
JZ K18A ; JUMP IF NOT CTL STATE
JMP K25 ; JUMP IF CTL STATE
K18A: CMP AL,INS_KEY ; CHECK FOR INSERT KEY
JNE K22 ; JUMP IF NOT INSERT KEY
TEST BL,ALT_SHIFT ; CHECK FOR ALTERNATE SHIFT
JZ K18B ; JUMP IF NOT ALTERNATE SHIFT
JMP K25 ; JUMP IF ALTERNATE SHIFT
K18B: TEST BH,LC_E0 ; IS THIS THE NEW INSERT KEY?
JNZ K22 ; YES, THIS ONE'S NEVER A "0"
K19: TEST BL,NUM_STATE ; CHECK FOR BASE STATE
JNZ K21 ; JUMP IF NUM LOCK IS ON
TEST BL,LEFT_SHIFT+RIGHT_SHIFT ; TEST FOR SHIFT STATE
JZ K22 ; JUMP IF BASE STATE
K20: MOV AH,AL ; PUT SCAN CODE BACK IN AH
JMP K25 ; NUMERAL "0", STNDRD. PROCESSING
K21: TEST BL,LEFT_SHIFT+RIGHT_SHIFT ; MIGHT BE NUMERIC
JZ K20 ; IS NUMERIC, STD. PROC.
K22: ; SHIFT TOGGLE KEY HIT; PROCESS IT
TEST AH, KB_FLAG_1 ; IS KEY ALREADY DEPRESSED?
JZ K22A
JMP K26 ; JUMP IF KEY ALREADY DEPRESSED
K22A: OR KB_FLAG_1,AH ; INDICATE THAT THE KEY IS DEPRESSED
XOR KB_FLAG,AH ; TOGGLE THE SHIFT STATE
TEST CS:SD.SPECIAL_FEATURES,TYPEWRITER_CAPS_LK
JZ K22C ; N..all done
;------ If keyboard is P12 then we do not toggle
TEST BP,PC_LAP ; IS THIS A P12 KEYBOARD?
JNZ LAP_SO_DONT_TOGGLE
TEST BH,KBX ; THIS THE ENHANCED KEYBOARD?
JZ K22C ; NO, ALL DONE WITH TOGGLE KEYS
LAP_SO_DONT_TOGGLE:
CMP CS:COUNTRY_FLAG,0FFh ; ARE WE IN FOREIGN LANG MODE?
JNE K22C ; NO, NO SPECIAL STUFF FOR U.S.
TEST AH,CAPS_SHIFT ; IS IT THE CAPS_LOCK KEY?
JZ K22C ; NO, NOTHING ELSE TO DO
OR KB_FLAG,AH ; YES, SET CAPS_LOCK (NOT TOGGLE)
K22C:
;------ TOGGLE LED IF CAPS, NUM, OR SCROLL KEY DEPRESSED
TEST AH,CAPS_SHIFT+NUM_SHIFT+SCROLL_SHIFT ; SHIFT TOGGLE?
JZ K22B ; GO IF NOT
PUSH AX ; SAVE SCAN CODE AND SHIFT MASK
CALL SND_LED ; GO TURN MODE INDICATORS ON
POP AX ; RESTORE SCAN CODE
K22B: CMP AL,INS_KEY ; TEST FOR 1ST MAKE OF INSERT KEY
JNE K26 ; JUMP IF NOT INSERT KEY
MOV AH,AL ; SCAN CODE IN BOTH HALVES OF AX
JMP K28 ; FLAGS UPDATED, PROC. FOR BUFFER
;------ BREAK SHIFT FOUND
K23: ; BREAK-SHIFT-FOUND
CMP AH,SCROLL_SHIFT ; IS THIS A TOGGLE KEY?
NOT AH ; INVERT MASK
JAE K24 ; YES, HANDLE BREAK TOGGLE
AND KB_FLAG,AH ; TURN OFF SHIFT BIT
CMP AH,NOT CTL_SHIFT ; IS THIS ALT OR CTL?
JA K23D ; NO, ALL DONE
TEST BH,LC_E0 ; 2ND ALT OR CTL?
JZ K23A ; NO, HANDLE NORMALLY
AND KB_FLAG_3,AH ; RESET BIT FOR RIGHT ALT OR CTL
JMP SHORT K23B ; CONTINUE
K23A: SAR AH,CL ; MOVE THE MASK BIT TWO POSITIONS
AND KB_FLAG_1,AH ; RESET BIT FOR LEFT ALT OR CTL
K23B: MOV AH,AL ; SAVE SCAN CODE
MOV AL, KB_FLAG_3 ; GET RIGHT ALT & CTRL FLAGS
CMP COUNTRY_FLAG,0FFH ; ARE WE IN LANGUAGE MODE?
JNE K23C ; NO, LEAVE RIGHT FLAGS AS IS
;**CNS
AND AL,NOT GRAPH_ON ; YES, FILTER OUT THE ALT_GR KEY
;**CNS
K23C: SHR AL,CL ; MOVE TO BITS 1 & 0
OR AL, KB_FLAG_1 ; PUT IN LEFT ALT & CTL FLAGS
SHL AL,CL ; MOVE BACK TO BITS 3 & 2
AND AL,ALT_SHIFT+CTL_SHIFT ; FILTER OUT OTHER GARBAGE
OR KB_FLAG,AL ; PUT RESULT IN THE REAL FLAGS
MOV AL,AH ; RECOVER SAVED SCAN CODE
K23D: CMP AL,ALT_KEY+80H ; IS THIS ALTERNATE SHIFT RELEASE
JNE K26 ; INTERRUPT_RETURN
;------ ALTERNATE SHIFT KEY RELEASED, GET THE VALUE INTO BUFFER
MOV AL, ALT_INPUT
xor ah,ah ; scan code of 0
MOV ALT_INPUT,AH ; ZERO OUT THE FIELD
or al,al ; was the input = 0?
JE K26 ; INTERRUPT_RETURN
CALL BUFFER_FILL_ANY_CHAR ; Put in buffer, but use this
; entry point to avoid trashing
; an ASCII code of 255
JMP SHORT K26 ; INTERRUPT_RETURN
K24: ; BREAK-TOGGLE
AND KB_FLAG_1,AH ; INDICATE NO LONGER DEPRESSED
JMP SHORT K26 ; INTERRUPT_RETURN
;------ TEST FOR HOLD STATE
; AL, AH = SCAN CODE
K25: ; NO-SHIFT-FOUND
CMP AL,80H ; TEST FOR BREAK KEY
JAE K26 ; NOTHING FOR BREAK CHARS FROM HERE ON
TEST KB_FLAG_1,HOLD_STATE ; ARE WE IN HOLD STATE
JZ K28 ; BRANCH AROUND TEST IF NOT
CMP AL,NUM_KEY
JE K26 ; CAN'T END HOLD ON NUM_LOCK
AND KB_FLAG_1,NOT HOLD_STATE ; TURN OFF THE HOLD STATE BIT
K26:
AND KB_FLAG_3,NOT LC_E0+LC_E1 ; RESET LAST CHAR H.C. FLAG
K26A: ; INTERRUPT-RETURN
ifdef NOT_NTVDM
;; NTVDM CLI ; TURN OFF INTERRUPTS
CALL ERROR_BEEP ; CHECK FOR ERROR BEEP PENDING
CMP CS:BUFFER_ENTRY_OK,YES ; HAS A CHARACTER BEEN PLACED IN BUFFER
JNE K27 ; NO, SKIP POST
MOV byte ptr CS:BUFFER_ENTRY_OK,NO ; CLEAR POST CHARACTER IN BUFFER FLAG
MOV AX,09102H ; MOVE IN POST CODE & TYPE
INT 15H ; PERFORM OTHER FUNCTION
K27:
MOV AL,ENA_KBD ; ENSURE KEYBOARD IS ENABLED (AT PS/2)
CALL SHIP_IT ; EXECUTE ENABLE
else
mov ah, 2
mov bh, CS:BEEP_PENDING
mov bl, CS:BUFFER_ENTRY_OK
MOV byte ptr CS:BUFFER_ENTRY_OK,NO
MOV byte ptr CS:BEEP_PENDING,NO
BOP 09h
endif
K27A: ;; NTVDM CLI ; DISABLE INTERRUPTS
POP ES ; RESTORE REGISTERS
POP DS ; *
POP DI ; *
POP SI ; *
POP DX ; *
POP CX ; *
POP BX ; *
POP AX ; *
POP BP ; *
jmp DOIRET ; RETURN
PAGE
;------ NOT IN HOLD STATE
; AL, AH = SCAN CODE (ALL MAKES)
K28: ; NO-HOLD-STATE
CMP AL,H_LAST_SCAN ; TEST FOR OUT-OF-RANGE SCAN CODES
JA SHORT K26 ; IGNORE IF OUT-OF-RANGE
ifndef JAPAN
TEST BP,EXT_122 ; IS EXTENDED 122 KEYBOARD SUPPORT OK
else ; JAPAN
; Must pass 07Eh and 07Fh DBCS pseudo's;AN013
; IS DBCS KEYBOARD support code active ;AN013
TEST BP,EXT_122+DBCS_OK ; or EXTENDED 122 KEYBOARD support OK ;AN013
endif ; JAPAN
JNZ K28_122 ; SKIP NON-122 OUT-OF-RANGE CHECK
ifdef NOT_NTVDM
CMP AL,88 ; TEST FOR OUT-OF-RANGE SCAN CODES
else
CMP AL,7Eh ; MAX SCANCODE ON BRAZILIAN ABNT KBD
endif
JA K26 ; IGNORE IF OUT-OF-RANGE
K28_122:
TEST BL,ALT_SHIFT ; ARE WE IN ALTERNATE SHIFT?
JZ K28A ; JUMP IF NOT ALTERNATE
TEST BH,KBX ; IS THIS THE ENHANCED KEYBOARD?
JZ K29 ; NO, ALT STATE IS REAL
TEST KB_FLAG_1,SYS_SHIFT ; YES, IS SYSREQ KEY DOWN?
JZ K29 ; NO, ALT STATE IS REAL
;**CNS
TEST AH,LC_E0 ; IS IT THE ALT_GR KEY?
JZ K28A ; YES, DON'T SET KB_FLAG
TEST AL,R_ALT_SHIFT ; TURN ON SHIFT BIT
JNZ K29 ; TURN ON SHIFT BIT
;**CNS
K28A: JMP K38 ; YES, THIS IS PHONY ALT STATE
; DUE TO PRESSING SYSREQ
;------ TEST FOR RESET KEY SEQUENCE (CTL ALT DEL) OR HOT KEY DEPRESSED
K29: ; TEST-RESET
TEST BL,CTL_SHIFT ; ARE WE IN CONTROL SHIFT ALSO?
ifndef JAPAN
JZ K31 ; NO_RESET
else ; JAPAN
JZ K31C ; NO_RESET, Not in Ctrl state
endif ; JAPAN
CMP AL,DEL_KEY ; SHIFT STATE IS THERE, TEST KEY
JNE K31A ; NO_RESET, TRANSLATE TABLE SWAP
;------ CTL-ALT-DEL HAS BEEN FOUND, DO I/O CLEANUP
MOV RESET_FLAG,1234H ; SET FLAG FOR RESET FUNCTION
AND WORD PTR KB_FLAG_3,KBX ; CLEAR ALL FLAG BITS EXCEPT KBX PED 6-25-86
JMP RESET ; JUMP TO POWER ON DIAGNOSTICS
ifdef JAPAN
;------ SET COUNTRY FLAG TO INDICATE WHICH TABLE WE'RE USING, FOREIGN OR DOMESTIC
K31A: CMP AL,CS:SD.HOT_KEY_ON_SCAN ; TEST FOR HOT KEY TO US
JNE K31B
MOV CS:COUNTRY_FLAG,00 ; SET FLAG FOR DOMESTIC KEY'S
JMP K26 ; INTERRUPT RETURN
K31B: CMP AL,CS:SD.HOT_KEY_OFF_SCAN ; TEST FOR HOT KEY TO FOREIGN
JNE K31C ; IF NOT TEST FOR FRONT ENGRAV
MOV CS:COUNTRY_FLAG,0FFH ; SET FLAGS FOR FOREIGN KEY'S
JMP K26 ; INTERRUPT RETURN
;------ ALT STATE, OR CTRL AND ALT DOWN BUT NO HOT KEY F1/F2 OR DEL KEY ;AN014
K31C: CMP CS:COUNTRY_FLAG,0FFH ; Check for country translate flag set ;AN014
JNE K31 ; Else try ALT_KEY_PAD special cases ;AN014
CALL KEYB_STATE_PROCESSOR ; Let NLS handle it's differences ;AN014
JC K32A ;K26 ; TRANSLATIONS FOUND - EXIT
endif ; JAPAN
;------ IN ALTERNATE SHIFT, RESET NOT FOUND
K31: ; NO-RESET
CALL KEYB_STATE_PROCESSOR
ifndef JAPAN
JC K26 ; TRANSLATIONS FOUND - EXIT
else ; JAPAN
JNC K310
JMP K26 ; TRANSLATIONS FOUND - EXIT
K310:
endif ; JAPAN
CMP AL,57 ; TEST FOR SPACE KEY
JNE K311 ; NOT THERE
MOV AL,' ' ; SET SPACE CHAR
JMP K57 ; BUFFER_FILL
K311:
TEST BP,EXT_16 ; IS EXTENDED INT 16 LOADED?
JZ K32 ; NO, SKIP THIS EXTENDED STUFF
CMP AL,15 ; TEST FOR TAB KEY
JNE K312 ; NOT THERE
MOV AX,0A500h ; SET SPECIAL CODE FOR ALT-TAB
JMP K57 ; BUFFER_FILL
K312:
CMP AL,74 ; TEST FOR KEYPAD -
JE K312A ; GO PROCESS
CMP AL,78 ; TEST FOR KEYPAD +
JNE K32 ; SKIP TEST FOR LANG SWAP & CONT.
K312A: JMP K37B ; GO PROCESS
ifndef JAPAN
;------ SET COUNTRY FLAG TO INDICATE WHICH TABLE WE'RE USING, FOREIGN OR DOMESTIC
K31A: CMP AL,CS:SD.HOT_KEY_ON_SCAN ; TEST FOR HOT KEY TO US
JNE K31B
MOV CS:COUNTRY_FLAG,00 ; SET FLAG FOR DOMESTIC KEY'S
JMP K26 ; INTERRUPT RETURN
K31B: CMP AL,CS:SD.HOT_KEY_OFF_SCAN ; TEST FOR HOT KEY TO FOREIGN
JNE K31C ; IF NOT TEST FOR FRONT ENGRAV
MOV CS:COUNTRY_FLAG,0FFH ; SET FLAGS FOR FOREIGN KEY'S
JMP K26 ; INTERRUPT RETURN
;------ ALT, CTRL DOWN ; NO HOT KEY
K31C: CMP CS:COUNTRY_FLAG,0FFH
JNE K32 ; TRY ALT_KEY_PAD
CALL KEYB_STATE_PROCESSOR
JC K32A ;K26 ; TRANSLATIONS FOUND - EXIT
endif ; !JAPAN
;------ LOOK FOR KEY PAD ENTRY
K32: ; ALT-KEY-PAD
MOV DI,OFFSET K30 ; ALT-INPUT-TABLE
MOV CX,10 ; LOOK FOR ENTRY USING KEYPAD
REPNE SCASB ; LOOK FOR MATCH
JNE K33 ; NO_ALT_KEYPAD
TEST BH,LC_E0 ; IS THIS ONE OF THE NEW KEYS?
JNZ K37C ; YES, JUMP, NOT NUMPAD KEY
SUB DI,OFFSET K30+1 ; DI NOW HAS ENTRY VALUE
MOV AL, ALT_INPUT ; GET THE CURRENT BYTE
MOV AH,10 ; MULTIPLY BY 10
MUL AH
ADD AX,DI ; ADD IN THE LATEST ENTRY
MOV ALT_INPUT,AL ; STORE IT AWAY
K32A: JMP K26 ; THROW AWAY THAT KEYSTROKE
;------ LOOK FOR SUPERSHIFT ENTRY
K33: ; NO-ALT-KEYPAD
MOV ALT_INPUT,0 ; ZERO ANY PREVIOUS ENTRY INTO INPUT
; DI,ES ALREADY POINTING
MOV CX,K30_LEN ; NORMALLY 26, BUT 27 FOR FR, DUE
; TO THE ";" KEY BEING "M"
REPNE SCASB ; LOOK FOR MATCH IN ALPHABET
JE K37A ; MATCH FOUND, GO FILL THE BUFFER
;------ LOOK FOR TOP ROW OF ALTERNATE SHIFT
K34: ; ALT-TOP-ROW
CMP AL,2 ; KEY WITH '1' ON IT
JB K37B ; MUST BE ESCAPE
CMP AL,13 ; IS IT IN THE REGION
JA K35 ; NO, ALT-SOMETHING ELSE
ADD AH,118 ; CONVERT PSEUDO SCAN CODE TO RANGE
JMP SHORT K37A ; GO FILL THE BUFFER
;------ TRANSLATE ALTERNATE SHIFT PSEUDO SCAN CODES
K35: ; ALT-FUNCTION
CMP AL,F11_M ; IS IT F11 or GREATER ?
JB K35A ; NO, BRANCH
SUB AL,52h ; SET UP TO SEARCH ALT-FUNCTION-TABLE
MOV BX,OFFSET K30A ; BASE CASE TABLE
JMP K64 ; CONVERT TO PSEUDO SCAN
K35A: TEST BH,LC_E0 ; DO WE HAVE ONE OF THE NEW KEYS?
JZ K37 ; NO, JUMP
TEST BP,EXT_16 ; IS THE EXTENDED INT 16 LOADED?
JZ K37 ; NO, DO COMPATIBLE OUTPUT
CMP AL,28 ; TEST FOR KEYPAD ENTER
JNE K35B ; NOT THERE
MOV AX,0A600h ; SPECIAL CODE
JMP K57 ; BUFFER FILL
K35B: CMP AL,83 ; TEST FOR DELETE KEY
JE K37C ; HANDLE WITH OTHER EDIT KEYS
CMP AL,53 ; TEST FOR KEYPAD /
JNE K32A ; NOT THERE, NO OTHER E0 SPECIALS
MOV AX,0A400h ; SPECIAL CODE
JMP K57 ; BUFFER FILL
K37: CMP AL,59 ; TEST FOR FUNCTION KEYS (F1)
JB K37B ; NO FN, HANDLE W/OTHER EXTENDED
CMP AL,68 ; IN KEYPAD REGION?
; OR NUMLOCK, SCROLLOCK?
JA K32A ; IF SO, IGNORE
ADD AH,45 ; CONVERT TO PSEUDO SCAN CODE
K37A: xor al,al ; ASCII CODE OF ZERO
JMP K57 ; PUT IT IN THE BUFFER
K37B:
TEST BP,EXT_16 ; IS THE EXTENDED INT 16 LOADED?
JZ K32A ;K26 ; NO, IGNORE THIS ONE
MOV AL,0F0h ; USE SPECIAL ASCII CODE
JMP K57 ; PUT IT IN THE BUFFER
K37C:
TEST BP,EXT_16 ; IS THE EXTENDED INT 16 LOADED?
JZ K37A ; NO, DO COMPATIBLE OUTPUT
ADD AL,80 ; CONVERT SCAN CODE (EDIT KEYS)
MOV AH,AL ; (SCAN CODE NOT IN AH FOR INSERT)
JMP K37A ; PUT IT IN THE BUFFER
PAGE
;------ NOT IN ALTERNATE SHIFT
K38: ; NOT-ALT-SHIFT
; BL STILL HAS SHIFT FLAGS
TEST BL,CTL_SHIFT ; ARE WE IN CONTROL SHIFT?
JNZ K38A ; YES, START PROCESSING
JMP K44 ; NOT-CTL-SHIFT
;------ CONTROL SHIFT, TEST SPECIAL CHARACTERS
;------ TEST FOR BREAK
K38A: CMP AL,SCROLL_KEY ; TEST FOR BREAK
JNE K39 ; JUMP, NO-BREAK
TEST BP,PC_LAP ; IS THIS THE LAP COMPUTER?
JNZ K38B ; YES, THIS IS CTRL-BREAK
TEST BH,KBX ; IS THIS THE ENHANCED KEYBOARD?
JZ K38B ; NO, BREAK IS VALID
TEST BH,LC_E0 ; YES, WAS LAST CODE AN E0?
JZ K39 ; NO-BREAK, TEST FOR PAUSE
K38B:
;; NTVDM CLI ; Disable interrupts because EOI issued
MOV BX, BUFFER_HEAD ; RESET BUFFER TAIL TO BUFFER HEAD
MOV BUFFER_TAIL,BX
MOV BIOS_BREAK,80H ; TURN ON BIOS_BREAK BIT
;-------- ENABLE KEYBOARD
ifdef NOT_NTVDM
MOV AL,ENA_KBD ; ENABLE KEYBOARD
CALL SHIP_IT ; EXECUTE ENABLE
else
mov ah, 4
BOP 09h
endif
INT 1BH ; BREAK INTERRUPT VECTOR
SUB AX,AX ; PUT OUT DUMMY CHARACTER
JMP K57 ; BUFFER_FILL
;-------- TEST FOR PAUSE
K39: ; NO-BREAK
CMP AL,NUM_KEY ; LOOK FOR PAUSE KEY
JNE K41 ; NO-PAUSE
TEST BH,KBX ; IS THIS THE ENHANCED KEYBOARD?
JZ K39P ; NO, THIS IS A VALID PAUSE
TEST BP,PC_LAP ; IS THIS THE LAP COMPUTER?
JZ K41 ; NO, IT'S NOT PAUSE THIS TIME
K39P: OR KB_FLAG_1,HOLD_STATE ; TURN ON THE HOLD FLAG
;-------- ENABLE KEYBOARD
MOV AL,ENA_KBD ; ENABLE KEYBOARD
CALL SHIP_IT ; EXECUTE ENABLE
ifdef NOT_NTVDM
;------ DURING PAUSE INTERVAL, TURN CRT BACK ON
CMP CRT_MODE,7 ; IS THIS BLACK AND WHITE CARD
JAE K40 ; YES, NOT CGA MODES NOTHING TO DO
MOV DX,03D8H ; PORT FOR COLOR CARD
MOV AL,CRT_MODE_SET ; GET THE VALUE OF THE CURRENT MODE
OUT DX,AL ; SET THE CRT MODE, SO THAT CRT IS ON
K40: ; PAUSE-LOOP
TEST BP,PC_LAP ; IS THIS THE LAP COMPUTER?
JZ K40A ; NO, SKIP THE BATTERY LIFE STUFF
MOV AX,4104H ; FUNCTION 41, AL=04=RETURN IF 0
MOV BX,HOLD_STATE*100H ; BH=HOLD_STATE, BL=0=NO TIME OUT
PUSH DS ; MAKE ES:DI POINT TO KB_FLAG_1
POP ES
MOV DI,OFFSET KB_FLAG_1
INT 15H ; SLEEP UNTIL OUT OF HOLD
;------ CHECK FOR AUX ADAPTER INPUT PENDING
K40A:
MOV CX,100 ; COUNT FOR WAIT LOOP
else
mov ah, 3 ; K27A exit notify
BOP 09h
call DOSTI
K40A:
mov cx, 16
xor ax, ax
BOP BOP_WAITIFIDLE ; idle bop
endif
K40B:
TEST KB_FLAG_1,HOLD_STATE ; ARE WE IN HOLD STATE
JZ K40E ; EXIT IF NOT
ifdef NOT_NTVDM
TEST BP,PC_XT+PC_LAP ; Check for systems without AUX BIOS
JNZ K40B ; For them, just loop on hold flag
IN AL,STATUS_PORT ; READ CURRENT STATUS
AND AL,MOUSE_OBF+OUT_BUF_FULL ; MASK OFF ALL BUT MOUSE DATA BITS
CMP AL,MOUSE_OBF+OUT_BUF_FULL ; IS THERE STILL MOUSE DATA PENDING?
endif
LOOPE K40B ; WAIT FOR MOUSE DATA TO GO
JNE K40A ; CONTINUE IF PAUSE STATE ;an005
K40E:
ifndef NOT_NTVDM
call DOCLI
endif
AND KB_FLAG_1,NOT HOLD_STATE ; CLEAR HOLD STATE FLAG
JMP K27A ; INTERRUPT_RETURN_NO_EOI PTR 2247
;------ TEST SPECIAL CASE KEY 55
K41: ; NO-PAUSE
CMP AL,55 ; TEST FOR */PRTSC KEY
JNE K42 ; NOT-KEY-55
TEST BP,PC_LAP ; IS THIS THE LAP COMPUTER?
JZ K41B ; NO, JUMP
TEST BH,LC_E0 ; YES, WAS LAST CODE AN E0?
JZ K41A ; NO, THIS IS THE PRTSC KEY
JMP SHORT K42B ; YES, E0 MEANS THE "*" KEY
K41B: TEST BH,KBX ; IS THIS THE ENHANCED KEYBOARD?
JZ K41A ; NO, CTL-PRTSC IS VALID
TEST BH,LC_E0 ; YES, WAS LAST CODE AN E0?
JZ K42B ; NO, TRANSLATE TO A FUNCTION
K41A: MOV AX,114*256 ; START/STOP PRINTING SWITCH
JMP K57 ; BUFFER_FILL
;------ SET UP TO TRANSLATE CONTROL SHIFT
K42: ; NOT-KEY-55
ifdef JAPAN
CMP CS:COUNTRY_FLAG,0FFH ; Check for country translate flag set
JNE K42US ; Skip overhead if not in country mode
endif ; JAPAN
CALL KEYB_STATE_PROCESSOR
JC K449 ;K26 ; TRANSLATIONS FOUND - EXIT
ifdef JAPAN
K42US:
endif ; JAPAN
CMP AL,15 ; IS IT THE TAB KEY?
JE K42B ; YES, XLATE TO FUNCTION CODE
CMP AL,53 ; IS IT THE / KEY?
JNE K42A ; NO, NO MORE SPECIAL CASES
TEST BH,LC_E0 ; YES, IS IT FROM THE KEYPAD?
JZ K42A ; NO, JUST TRANSLATE
MOV AX,9500h ; YES, SPECIAL CODE FOR THIS ONE
JMP K57 ; BUFFER FILL
K42A: MOV BX,OFFSET K8 ; SET UP TO TRANSLATE CTL
CMP AL,59 ; IS IT IN CHARACTER TABLE?
JB K45F ; YES, GO TRANSLATE CHAR
K42B: MOV BX,OFFSET K8 ; SET UP TO TRANSLATE CTL
JMP K64 ; NO, GO TRANSLATE_SCAN
PAGE
;------ NOT IN CONTROL SHIFT
K44:
ifdef JAPAN
CMP CS:COUNTRY_FLAG,0FFH ; Check for country translate flag set
JNE K44US ; Skip overhead if not in country mode
endif ;JAPAN
CALL KEYB_STATE_PROCESSOR
JC K449 ;K26 ; TRANSLATIONS FOUND - EXIT
ifdef JAPAN
K44US:
endif ; JAPAN
CMP AL,55 ; PRINT SCREEN KEY?
JNE K45 ; NOT-PRINT-SCREEN
TEST BP,PC_LAP ; IS THIS THE LAP COMPUTER?
JZ K441 ; NO, JUMP
TEST BH,LC_E0 ; YES, WAS LAST CODE THE MARKER?
JZ K44A ; NO, TEST THE SHIFT STATE
JMP SHORT K45C ; YES, XLATE TO "*" CHAR
K441: TEST BH,KBX ; IS THIS ENHANCED KEYBOARD?
JZ K44A ; NO, TEST FOR SHIFT STATE
TEST BH,LC_E0 ; YES, LAST CODE A MARKER?
JNZ K44B ; YES, IS PRINT SCREEN
JMP SHORT K45C ; NO, XLATE TO "*" CHARACTER
K44A: TEST BL,LEFT_SHIFT+RIGHT_SHIFT ;NOT 101 KBD, SHIFT KEY DOWN?
JZ K45C ; NO, XLATE TO "*" CHARACTER
;------ ISSUE INTERRUPT TO PERFORM PRINT SCREEN FUNCTION
K44B:
;; NTVDM CLI ; DISABLE INTERRUPTS PTR 2355
AND KB_FLAG_3,NOT LC_E0+LC_E1 ;ZERO OUT THESE FLAGS
ifdef NOT_NTVDM
MOV AL,ENA_KBD ; INSURE KEYBOARD IS ENABLED
CALL SHIP_IT ; EXECUTE ENABLE
else
mov ah, 3 ; K27A exit notify
BOP 09h
endif
PUSH BP ; SAVE POINTER (compatibility)
INT 5H ; ISSUE PRINT SCREEN INTERRUPT
POP BP ; RESTORE POINTER
JMP K27A ; EXIT WITHOUT EXTRA EOI OR ENABLE
K449:
JMP K26 ; EXIT
;------ HANDLE THE IN-CORE KEYS
K45: ; NOT-PRINT-SCREEN
CMP AL,58 ; TEST FOR IN-CORE AREA
JA K46 ; JUMP IF NOT
TEST BH,GRAPH_ON ; IS ALT GRAPHICS ON? AEV
JNZ K449 ;K26 ; YES, TRASH KEYSTROKE
CMP AL,53 ; IS THIS THE "/" KEY?
JNE K45A ; NO, JUMP
TEST BH,LC_E0 ; WAS LAST CODE THE MARKER?
JNZ K45C ; YES, TRANSLATE TO CHARACTER
K45A: MOV CX,K30_LEN ; LENGTH OF SEARCH
MOV DI,OFFSET K30+10 ; POINT TO TABLE OF A-Z CHARS
REPNE SCASB ; IS THIS A LETTER KEY?
JNE K45B ; NO, SYMBOL KEY
TEST BL,CAPS_STATE ; ARE WE IN CAPS_LOCK?
JNZ K45D ; TEST FOR SURE
K45B: TEST BL,LEFT_SHIFT+RIGHT_SHIFT ; ARE WE IN SHIFT STATE?
JNZ K45E ; YES, UPPERCASE
; NO, LOWERCASE
K45C: MOV BX,OFFSET K10 ; TRANSLATE TO LOWERCASE LETTERS
JMP SHORT K56
K45D: ; ALMOST-CAPS-STATE
TEST BL,LEFT_SHIFT+RIGHT_SHIFT ; CL ON. IS SHIFT ON, TOO?
JNZ K45C ; SHIFTED TEMP OUT OF CAPS STATE
K45E: MOV BX,OFFSET K11 ; TRANSLATE TO UPPERCASE LETTERS
K45F: JMP SHORT K56
;------ TEST FOR KEYS F1 - F10
K46: ; NOT IN-CORE AREA
CMP AL,68 ; TEST FOR F1 - F10
JA K47 ; JUMP IF NOT
JMP SHORT K53A ; YES, GO DO FN KEY PROCESS
;------ HANDLE THE NUMERIC PAD KEYS
K47: ; NOT F1 - F10
CMP AL,83 ; TEST FOR NUMPAD KEYS
JA K52 ; JUMP IF NOT
;------ KEYPAD KEYS, MUST TEST NUM LOCK FOR DETERMINATION
K48: CMP AL,74 ; SPECIAL CASE FOR MINUS
JE K45E ; GO TRANSLATE (US & WT ARE SAME)
CMP AL,78 ; SPECIAL CASE FOR PLUS
JE K45E ; GO TRANSLATE (US & WT ARE SAME)
TEST BH,LC_E0 ; IS THIS ONE OF THE NEW KEYS?
JNZ K49 ; YES, TRANSLATE TO BASE STATE
TEST BL,NUM_STATE ; ARE WE IN NUM_LOCK?
JNZ K50 ; TEST FOR SURE
TEST BL,LEFT_SHIFT+RIGHT_SHIFT ; ARE WE IN SHIFT STATE?
JNZ K51 ; IF SHIFTED, REALLY NUM STATE
;------ BASE CASE FOR KEYPAD
K49: CMP AL,76 ; SPECIAL CASE FOR BASE STATE 5
JNE K49A ; CONTINUE IF NOT KEYPAD 5
TEST BP,EXT_16 ; IS THE EXTENDED INT 16 LOADED?
JZ K59 ;K26 ; NO, INGORE
MOV AL,0F0h ; SPECIAL ASCII CODE
JMP SHORT K57 ; BUFFER FILL
K49A: MOV BX,OFFSET K10 ; BASE CASE TABLE
JMP SHORT K64 ; CONVERT TO PSEUDO SCAN
;------ MIGHT BE NUM LOCK, TEST SHIFT STATUS
K50: TEST BL,LEFT_SHIFT+RIGHT_SHIFT ;ALMOST-NUM-STATE
JNZ K49 ; SHIFTED TEMP OUT OF NUM STATE
K51: JMP SHORT K45E ; REALLY_NUM_STATE
; (US & WT ARE SAME)
;------ TEST FOR THE NEW KEY ON WT KEYBOARDS
K52: ; NOT A NUMPAD KEY
CMP AL,86 ; IS IT THE NEW WT KEY?
JNE K53 ; JUMP IF NOT
MOV AL,58 ; WE'RE GOING TO PULL A SNEAKY
JMP K45 ; TRICK HERE. WT TABLES ARE TOO SHORT TO
; XLATE 86, SO WE'LL CHANGE IT TO CAPS_LOCK
; AND PUT THE CHAR IN THE TABLES IN THE C_L
; POSITION, SINCE C_L SCAN CODES NEVER GET
; HERE ANYWAY.
;------ MUST BE F11 OR F12
K53: TEST BP,EXT_16 ; IS THE EXTENDED INT 16 THERE?
JZ K59 ; NO, INGORE F11 & F12 (NEAR RET)
; F1 - F10 COME HERE, TOO
K53A: TEST BL,LEFT_SHIFT+RIGHT_SHIFT ;TEST SHIFT STATE
JZ K49 ; JUMP, LOWERCASE PSEUDO SC'S
MOV BX,OFFSET K11 ; UPPER CASE PSEUDO SCAN CODES
JMP SHORT K64 ; TRANSLATE_SCAN
PAGE
;------ TRANSLATE THE CHARACTER
K56: ; TRANSLATE-CHAR
DEC AL ; CONVERT ORIGIN
XLAT CS:K11 ; CONVERT THE SCAN CODE TO ASCII
TEST KB_FLAG_3,LC_E0 ; IS THIS A NEW KEY?
JZ K57 ; NO, GO FILL BUFFER
TEST BP,EXT_16 ; IS THE EXTENDED INT 16 THERE?
JZ K57 ; NO, DO COMPATIBLE OUTPUT
MOV AH,MC_E0 ; YES, PUT SPECIAL MARKER IN AH
JMP SHORT K57 ; PUT IT INTO THE BUFFER
;------ TRANSLATE SCAN FOR PSEUDO SCAN CODES
K64: ; TRANSLATE-SCAN-ORGD
DEC AL ; CONVERT ORIGIN
XLAT CS:K8 ; CTL TABLE SCAN
MOV AH,AL ; PUT VALUE INTO AH
xor al,al ; ZERO ASCII CODE
TEST KB_FLAG_3,LC_E0 ; IS THIS A NEW KEY?
JZ K57 ; NO, GO FILL BUFFER
TEST BP,EXT_16 ; IS THE EXTENDED INT 16 THERE?
JZ K57 ; NO, DO COMPATIBLE OUTPUT
MOV AL,MC_E0 ; YES, PUT SPECIAL MARKER IN AL
;------ PUT CHARACTER INTO BUFFER
K57: ; BUFFER-FILL
ifdef JAPAN
CMP AH,0E0h ; Was this the Ctrl-Enter key? DCR 1815;AN013
JE Short K57N122 ; Do not add 122 key marker DCR 1815;AN013
CMP AH,S_XKBD_SCAN ; Is it non 122-keyboard key? DCR 1815;AN013
JBE Short K57N122 ; Yes, skip add of 122 marker DCR 1815;AN013
CMP CS:S_122_MARKER,0 ; Check special INT 16h case flag ;AN013
JE K57N122 ; Skip F8 marker, if INT 16h broken ;AN013
MOV AL,S_122_MARK ; Add special marker F8 if 122 DCR 1815;AN013
K57N122: ;AN013
endif ; JAPAN
CALL BUFFER_FILL
K59:
JMP K26 ;-- THAT'S ALL FOLKS --
KEYB_INT_9 ENDP
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Procedure: BUFFER_FILL
;
; Description:
; Generate keyboard buffer entry
;
; Input Registers:
; AX - the buffer entry
; DS - BIOS data segment
;
; Output Registers:
; None
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
BUFFER_ENTRY_OK DB NO ; YES if character put into buffer
BUFFER_FILL PROC NEAR
; CMP AL,-1 ; IS THIS AN IGNORE CHAR
; JE K61B ; YES, EXIT (commented YST)
CMP AH,-1 ; LOOK FOR -1 PSEUDO SCAN
JE K61B ; EXIT
;
; BUFFER_FILL_ANY_CHAR is an alternate entry point to this PROC.
; Entry at this point will avoid trashing ASCII values of 255.
;
BUFFER_FILL_ANY_CHAR LABEL NEAR
PUSH SI
PUSH BX
PUSH DS ; This routine may be called
; externally so make sure DS points
MOV BX,DATA ; to BIOS data
MOV DS,BX
;; NTVDM cli ; disable interrupts P724
MOV BX, BUFFER_TAIL ; GET THE END POINTER TO THE BUFFER
MOV SI,BX ; SAVE THE VALUE
INC BX ; MOVE TO NEXT WORD IN LIST
INC BX
;; VERIFY IF THE CURRENT ROM LEVEL IN THE SYSTEM IS FOR THE ORIGINAL PC1
TEST BP,PC_81 ; CHECK FOR '81 DATE FLAG SET
ifndef JAPAN
JNE NOT_PC1 ; IF IT'S A LATER ROM RELEASE, BRANCH
else ; JAPAN
JZ NOT_PC1 ; IF IT'S A LATER ROM RELEASE, BRANCH
endif ; JAPAN
CMP BX,OFFSET KB_BUFFER_END ; AT END OF BUFFER?
JNE K5 ; NO, CONTINUE
MOV BX,OFFSET KB_BUFFER ; YES, RESET TO BUFFER BEGINNING
JMP SHORT K5
NOT_PC1:
CMP BX, BUFFER_END ; AT END OF BUFFER?
JNE K5 ; NO, CONTINUE
MOV BX, BUFFER_START ; YES, RESET TO BUFFER BEGINNING
K5:
CMP BX,BUFFER_HEAD ; HAS THE BUFFER WRAPPED AROUND
JE K62 ; BUFFER_FULL_BEEP
MOV [SI],AX ; STORE THE VALUE
MOV BUFFER_TAIL,BX ; MOVE THE POINTER UP
MOV CS:BUFFER_ENTRY_OK,YES ; INDICATE WE PUT SOMETHING IN BUFFER
JMP SHORT K61A
K62:
MOV CS:BEEP_PENDING,YES ; INDICATE WE NEED A BEEP
K61A:
POP DS
POP BX
POP SI
;; NTVDM sti ; enable interrupts P724
K61B:
RET
BUFFER_FILL ENDP
PAGE
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Procedure: ERROR_BEEP
;
; Description:
; General routine to generate beep tones
;
; Input Registers:
; None
;
; Output Registers:
; None
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ERROR_BEEP PROC NEAR
CMP CS:BEEP_PENDING,YES ; Q..SHOULD WE BEEP?
JNE NO_BEEP
MOV CS:BEEP_PENDING,NO ; Reset BEEP required
ifndef NOT_NTVDM
mov ah, 0eh
mov al, 07h
int 10h
else
MOV CX,216-32 ; NUMBER OF CYCLES FOR 1/8 SECOND TONE
IN AL,PORT_B ; Get control info
PUSH AX
LOOP01:
AND AL,0FCH ; Turn off timer gate and speaker
OUT PORT_B,AL ; output to control - speaker off
CALL WAITFB ; half cycle time for tone
OR AL,2 ; turn on speaker
CLI ; Disable interrupts for 1/2 cycle, 300u
OUT PORT_B,AL ; output to control
CALL WAITFB ; another half cycle
STI ; Enable interrupts between 1/2 cycle
LOOP LOOP01
POP AX
OUT PORT_B,AL ; Restore control
MOV CX,32*2 ; Short delay count of 32 cycles
LOOP02:
CALL WAITFB ; Add a short delay to complete 1/8 sec
LOOP LOOP02 ; Repeat
CLI ; Disable interrupts
endif
NO_BEEP:
RET ; RETURN
ERROR_BEEP ENDP
ifdef NOT_NTVDM
WAITFB PROC NEAR ; DELAY FOR (CX)*15.085737 US
PUSH AX ; SAVE WORK REGISTER (AH)
PUSH CX ; SAVE COUNT
MOV CX,19 ; The half cycle time for 1745 hz
TEST BP,PC_AT+PC_386 ; IF THE SYSTEM IS AN 80x86
JNZ WAITF1 ; SKIP TO REFRESH BIT DELAY
WAITF0:
NOP ; Force two fetch cycles on Model 30
LOOP WAITF0 ; SOFTWARE DELAY LOOP ON 808x MACHINES
JMP SHORT WAITFE ; EXIT
WAITF1: ; USE TIMER 1 OUTPUT BITS
IN AL,PORT_B ; READ CURRENT COUNTER OUTPUT STATUS
AND AL,REFRESH_BIT ; MASK FOR REFRESH DETERMINE BIT
CMP AL,AH ; DID IT JUST CHANGE
JE WAITF1 ; WAIT FOR A CHANGE IN OUTPUT LINE
MOV AH,AL ; SAVE NEW FLAG STATE
LOOP WAITF1 ; DECREMENT HALF CYCLES TILL COUNT END
WAITFE:
POP CX ; RESTORE COUNT
POP AX ; RESTORE (AH)
RET ; RETURN (CX)= 0
WAITFB ENDP
endif
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; SHIP_IT
;
; THIS ROUTINE HANDLES TRANSMISSION OF COMMAND AND DATA BYTES
; TO THE KEYBOARD CONTROLLER.
;
; On entry the AL contains the command byte.
; On Enable keyboard commands, the reset keyboard input latch is done
; if the system is the old PC type.
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
SHIP_IT PROC NEAR
ifdef NOT_NTVDM
;------- TEST SYSTEM TYPE
PUSHF ; SAVE FLAGS P725
CLI ; DISABLE INTERRUPTS TILL DATA SENT
TEST BP,PC_XT+PC_LAP
JZ SI5 ; USE AT 8042 COMMAND IF NOT PC TYPE
CMP AL,ENA_KBD ; CHECK FOR ENABLE KEYBOARD COMMAND
JNE SI9 ; SKIP ENABLE RESET
; FOR PC, XT, P12: RESET THE KEYBOARD
PUSH AX ; SAVE AX
IN AL,KB_CTL ; GET THE CONTROL PORT
MOV AH,AL ; SAVE VALUE
OR AL,80H ; RESET BIT FOR KEYBOARD ON PC/PC-XT
OUT KB_CTL,AL
XCHG AH,AL ; GET BACK ORIGINAL CONTROL
OUT KB_CTL,AL ; KB HAS BEEN RESET
POP AX ; RESTORE AX
; EXIT as NOT next system
SI5:
TEST BP,PC_AT+PC_386 ; IF THE SYSTEM IS NOT AN 80x86
JZ SI9 ; MACHINE, EXIT THIS PROC.
;------- WAIT FOR COMMAND TO BE ACCEPTED;
CALL chk_ibf ; GO READ KEYBOARD CONTROLLER STATUS
endif
OUT STATUS_PORT,AL ; SEND TO KEYBOARD CONTROLLER
ifdef NOT_NTVDM
SI9: ; ENABLE INTERRUPTS AGAIN
POPF ; RESTORE FLAGS P725
endif
RET ; RETURN TO CALLER
SHIP_IT ENDP
ifdef NOT_NTVDM
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; SND_DATA
;
; THIS ROUTINE HANDLES TRANSMISSION OF COMMAND AND DATA BYTES
; TO THE KEYBOARD AND RECEIPT OF ACKNOWLEDGEMENTS. IT ALSO
; HANDLES ANY RETRIES IF REQUIRED
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
SND_DATA PROC NEAR
PUSH AX ; SAVE REGISTERS
PUSH BX ; *
PUSH CX
MOV BH,AL ; SAVE TRANSMITTED BYTE FOR RETRIES
MOV BL,3 ; LOAD RETRY COUNT
SD0:
CLI ; DISABLE INTERRUPTS
AND KB_FLAG_2,NOT (KB_FE+KB_FA+kb_err) ; CLEAR ACK, RESEND and
; error flags
CALL CHK_IBF ; Wait for command accepted
MOV AL,BH ; REESTABLISH BYTE TO TRANSMIT
OUT PORT_A,AL ; SEND BYTE
STI ; ENABLE INTERRUPTS
MOV CX,DLY_15MS ; DELAY FOR 15 ms TIMEOUT
SD1: TEST KB_FLAG_2,KB_FE+KB_FA ; SEE IF EITHER BIT SET
JNZ SD3 ; IF SET, SOMETHING RECEIVED GO PROCESS
IN AL,PORT_B ; WAIT LOOP USING REFRESH BIT
AND AL,REFRESH_BIT
CMP AL,AH
JE SD1 ; KEEP TESTING
MOV AH,AL ; DEC CX ON REFRESH TIC
LOOP SD1 ; KEEP TESTING
; !! TIMEOUT !!
SD2: DEC BL ; DECREMENT RETRY COUNT
JNZ SD0 ; RETRY TRANSMISSION
OR KB_FLAG_2,KB_ERR ; TURN ON TRANSMIT ERROR FLAG
JMP SHORT SD4 ; RETRIES EXHAUSTED FORGET TRANSMISSION
SD3: TEST KB_FLAG_2,KB_FA ; SEE IF THIS IS AN ACKNOWLEDGE
JZ SD2 ; IF NOT, GO RESEND
SD4: POP CX ; RESTORE REGISTERS
POP BX
POP AX ; *
RET ; RETURN, GOOD TRANSMISSION
SND_DATA ENDP
endif
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; SND_LED
;
; THIS ROUTINE TURNS ON THE MODE INDICATORS.
;
; NTVDM - we do not need to update led's as this is controlled
; by the host\system. We also assume that interrupts are
; off upon entry
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
SND_LED PROC NEAR
ifdef NOT_NTVDM
CLI ; TURN OFF INTERRUPTS
TEST BP,PC_AT+PC_386 ; IF THE SYSTEM IS NOT A 80x86
JZ SL1 ; MACHINE, EXIT THIS PROC
endif
TEST KB_FLAG_2,KB_PR_LED ; CHECK FOR MODE INDICATOR UPDATE
JNZ SL1 ; DONT UPDATE AGAIN IF UPDATE UNDERWAY
OR KB_FLAG_2,KB_PR_LED ; TURN ON UPDATE IN PROCESS
ifdef NOT_NTVDM
MOV AL,LED_CMD ; LED CMD BYTE
CALL SND_DATA ; SEND DATA TO KEYBOARD
CLI
endif
CALL MAKE_LED ; GO FORM INDICATOR DATA BYTE
AND KB_FLAG_2,0F8H ; CLEAR MODE INDICATOR BITS
OR KB_FLAG_2,AL ; SAVE PRESENT INDICATORS FOR NEXT TIME
mov ah, 3 ; inform softpc to set lights
BOP 16h
ifdef NOT_NTVDM
TEST KB_FLAG_2,KB_ERR ; TRANSMIT ERROR DETECTED
JNZ SL2 ; YES, BYPASS SECOND BYTE TRANSMISSION
CALL SND_DATA ; SEND DATA TO KEYBOARD
CLI ; TURN OFF INTERRUPTS
TEST KB_FLAG_2,KB_ERR ; TRANSMIT ERROR DETECTED
JZ SL3 ; IF NOT, DONT SEND AN ENABLE COMMAND
SL2: MOV AL,KB_ENABLE ; GET KEYBOARD CSA ENABLE COMMAND
CALL SND_DATA ; SEND DATA TO KEYBOARD
CLI ; TURN OFF INTERRUPTS
endif
SL3: AND KB_FLAG_2,NOT(KB_PR_LED+KB_ERR) ; TURN OFF MODE INDICATOR
; UPDATE AND TRANSMIT ERROR FLAG
SL1:
ifdef NOT_NTVDM
STI ; ENABLE INTERRUPTS
endif
RET ; RETURN TO CALLER
SND_LED ENDP
PAGE
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; MAKE_LED
;
; THIS ROUTINE FORMS THE DATA BYTE NECESSARY TO TURN ON/OFF
; THE MODE INDICATORS
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
MAKE_LED PROC NEAR
PUSH CX ; SAVE CX
MOV AL, KB_FLAG ; GET CAPS & NUM LOCK INDICATORS
AND AL,CAPS_STATE+NUM_STATE+SCROLL_STATE ; ISOLATE INDICATORS
MOV CL,4 ; SHIFT COUNT
ROL AL,CL ; SHIFT BITS OVER TO TURN ON INDICATORS
AND AL,07H ; MAKE SURE ONLY MODE BITS ON
POP CX
RET ; RETURN TO CALLER
MAKE_LED ENDP
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; CHK_IBF
;
; Description:
; Waits for a keyboard command to be accepted
; wait until ibf = 0 (empty)
;
; Input Registers:
; None
;
; Output Registers:
; ZF=0 time out & IBF still full
; ZF=1 IBF is empty
;
; ---------------------------------------------------------------
; This procedure replaces the previous one which used a software
; timing loop. (For 80286, 80386 and 80486 based machines.)
; ---------------------------------------------------------------
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
chk_ibf proc near
push ax ; Save register used
push cx
mov cx,DLY_15MS ; Timeout 15 milleseconds (15000/15.086;
chk_ibfl:
ifdef JAPAN
in al,status_port ; Read status port
test al,inpt_buf_full ; Check for input buffer empty
jz chk_ibfe ; Exit if IBF off, no command pending
endif ; JAPAN
in al,PORT_B ; Read current refresh output bit
and al,refresh_bit ; Mask all but refresh bit
cmp al,ah ; Did it change? (or first pass thru)
jz short chk_ibfl ; No, wait for change, else continue
mov ah,al ; Save new refresh bit state
ifndef JAPAN
in al,status_port ; Read status port
test al,inpt_buf_full ; Check for input buffer empty
loopnz chk_ibfl ; Loop until input buf empty or timeout;
else ; JAPAN
loop chk_ibfl ; Loop until timeout
chk_ibfe: ; or exit when Input Buffer Full off
endif ; JAPAN
pop cx
pop ax ; Restore register used
ret ; Return to caller
chk_ibf endp
ifdef JAPAN
;***********************************************************************;JP9009
;* *;JP9009
;* DBCS Common Keyboard Support *;JP9009
;* *;JP9009
;* The DBCS common keyboard unique scan code is mapped to the *;JP9009
;* temporary scan code. It is again mapped to the corresponding *;JP9009
;* scan code/character code according the current shift staes. *;JP9009
;* *;JP9009
;***********************************************************************;JP9009
;JP9009
DBCS_keyboard_support proc near ;JP9009
cmp al, 80h ; Ignore break keys ;JP9009
jae leave_it_to_common_method ;JP9009
;AN013 test cs:SD.KEYB_TYPE, DBCS_KB ; DBCS keyboard? ;JP9009
;AN013 jz leave_it_to_common_method ;JP9009
cmp cs:SD.INVOKED_CP_TABLE, 932 ; DBCS code page? ;JP9009
jb leave_it_to_common_method ;JP9009
call DBCS_keyboard_common_support ;JP9009
test cs:SD.KEYB_TYPE, DBCS_OLD_KB ;JP9009
jz leave_it_to_common_method_1 ;JP9009
call DBCS_old_keyboard_support ;JP9009
leave_it_to_common_method_1: ;JP9009
mov ah, al ; ah = al = 'make' scan code ;JP9009
mov cs:scan_code, al; Set this because we don't know;JP9009
; who will use it later. ;JP9009
leave_it_to_common_method: ;JP9009
ret ;JP9009
DBCS_keyboard_support endp ;JP9009
;JP9009
PSEUDO_SC_ALPHANUMERIC equ 7eh ;JP9009
PSEUDO_SC_HIRAGANA equ 7fh ;JP9009
;JP9009
DBCS_keyboard_common_support proc near ;JP9009
; Check if it is the Alphanumeric key or Kanji NO key ;JP9009
; of the DBCS new keyboard. ;JP9009
cmp al, 3ah ; CAPS key ? ;JP9009
jne leave_it_to_common_method_2 ; if not ;JP9009
mov cx,cs:SD.KEYB_TYPE ;QFESP4
and cx,07h
cmp cx,2 ; 106 kbd?
jz check_key_status
cmp cx,3 ; IBM-5576 002/003 kbd?
jz check_key_status
cmp cx,0 ; 101 kbd?
jnz leave_it_to_common_method_2
test bl,(ALT_SHIFT or CTL_SHIFT or LEFT_SHIFT or RIGHT_SHIFT)
jz leave_it_to_common_method_2
push bx
and bl,(ALT_SHIFT or CTL_SHIFT)
cmp bl,(ALT_SHIFT or CTL_SHIFT) ;press alt and ctl ?
pop bx
jz leave_it_to_common_method_2
jmp short convert_to_alphanumeric_2
check_key_status: ;QFESP4
test bl, ALT_SHIFT ;JP9009
jnz convert_to_alphanumeric ;JP9009
test bl, (LEFT_SHIFT or RIGHT_SHIFT) ;JP9009
jnz leave_it_to_common_method_2 ;JP9009
jmp short convert_to_alphanumeric_2 ;JP9009
convert_to_alphanumeric: ;JP9009
test cs:SD.KEYB_TYPE, DBCS_OLD_A_KB ;JP9009
jnz leave_it_to_common_method_2 ;JP9009
convert_to_alphanumeric_2: ;JP9009
mov al, PSEUDO_SC_ALPHANUMERIC ;JP9009
leave_it_to_common_method_2: ;JP9009
ret ;JP9009
DBCS_keyboard_common_support endp ;JP9009
;JP9009
;***********************************************************************;JP9009
;* *;JP9009
;* DBCS Old Keyboard Support *;JP9009
;* *;JP9009
;* The old DBCS keyboard unique scan codes is mapped to the *;JP9009
;* temporary scan code. It is again mapped to the corresponding *;JP9009
;* scan code/character code according the current shift staes. *;JP9009
;* *;JP9009
;***********************************************************************;JP9009
;JP9009
DBCS_old_keyboard_support proc near ;JP9009
mov cx,cs:SD.KEYB_TYPE
and cx,07h
cmp cx,2 ; 106 kbd?
jz check_old_key_status
cmp cx,3 ; IBM-5576 002/003 kb?
jne not_right_ALT_nor_hiragana
check_old_key_status:
cmp al, 38h ;JP9009
jne not_right_ALT_nor_hiragana ;JP9009
test ds:KB_FLAG_3, LC_E0 ;JP9009
jz not_right_ALT_nor_hiragana ;JP9009
mov al, PSEUDO_SC_HIRAGANA ;JP9009
and ds:KB_FLAG_3, not LC_E0 ;JP9009
not_right_ALT_nor_hiragana: ;JP9009
ret ;JP9009
DBCS_old_keyboard_support endp ;JP9009
endif ; JAPAN
DOSTI proc near
FSTI
ret
DOSTI endp
DOCLI proc near
FCLI
ret
DOCLI endp
DOIRET:
FIRET
CODE ENDS
END
| 42.97261
| 89
| 0.456964
|
b41de741db1f03fc9d4b484ac0f457e12f7a10fc
| 565
|
asm
|
Assembly
|
Documentation/Code/echo.asm
|
geoffthorpe/ant-architecture
|
d85952e3050c352d5d715d9749171a335e6768f7
|
[
"BSD-3-Clause"
] | null | null | null |
Documentation/Code/echo.asm
|
geoffthorpe/ant-architecture
|
d85952e3050c352d5d715d9749171a335e6768f7
|
[
"BSD-3-Clause"
] | null | null | null |
Documentation/Code/echo.asm
|
geoffthorpe/ant-architecture
|
d85952e3050c352d5d715d9749171a335e6768f7
|
[
"BSD-3-Clause"
] | 1
|
2020-07-15T04:09:05.000Z
|
2020-07-15T04:09:05.000Z
|
# $Id: echo.asm,v 1.2 2000/11/22 00:29:59 ellard Exp $
#
# Barney Titmouse - 11/10/96
#
# Echos input.
#
# See cat.asm for the same basic program, coded
# in a slightly different style.
#
# Register usage:
#
# r2 - holds each character read in.
# r3 - address of $print.
#
lc r3, $print
loop:
sys r2, 0x6 # r2 = getchar ();
beq r3, r1, r0 # if not at EOF, go to $print.
jmp $exit # otherwise, go to $exit.
print:
sys r2, 0x3 # putchar (r2);
jmp $loop # iterate, go back to $loop
exit:
sys r0, 0 # just halt; nothing else to do.
# end of echo.asm
| 18.225806
| 54
| 0.630088
|
d864b56d71ab58752cbee684c1954852b5116226
| 343
|
asm
|
Assembly
|
programs/oeis/106/A106251.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/106/A106251.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/106/A106251.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A106251: Expansion of (1-x+x^2+x^3+x^5)/(1-x-x^6+x^7).
; 1,0,1,2,2,3,4,3,4,5,5,6,7,6,7,8,8,9,10,9,10,11,11,12,13,12,13,14,14,15,16,15,16,17,17,18,19,18,19,20,20,21,22,21,22,23,23,24,25,24,25,26,26,27,28,27,28,29,29,30,31,30,31,32,32,33,34,33,34,35,35,36,37,36,37,38
add $0,2
mov $1,$0
mod $0,3
add $1,$0
div $1,2
mul $1,2
sub $1,2
div $1,2
| 28.583333
| 210
| 0.597668
|
81b347379f6d035821b9ca5027fcbd6c7b73764d
| 297
|
asm
|
Assembly
|
libsrc/osca/get_current_volume.asm
|
andydansby/z88dk-mk2
|
51c15f1387293809c496f5eaf7b196f8a0e9b66b
|
[
"ClArtistic"
] | 1
|
2020-09-15T08:35:49.000Z
|
2020-09-15T08:35:49.000Z
|
libsrc/osca/get_current_volume.asm
|
andydansby/z88dk-MK2
|
51c15f1387293809c496f5eaf7b196f8a0e9b66b
|
[
"ClArtistic"
] | null | null | null |
libsrc/osca/get_current_volume.asm
|
andydansby/z88dk-MK2
|
51c15f1387293809c496f5eaf7b196f8a0e9b66b
|
[
"ClArtistic"
] | null | null | null |
;
; Old School Computer Architecture - interfacing FLOS
; Stefano Bodrato, 2011
;
; Get current volume
;
; $Id: get_current_volume.asm,v 1.1 2011/08/03 08:13:40 stefano Exp $
;
INCLUDE "flos.def"
XLIB get_current_volume
get_current_volume:
call kjt_get_volume_info
ld l,a
ld h,0
ret
| 15.631579
| 69
| 0.727273
|
32aee517e8c1dd13006eea20126716b6a8ef4ac6
| 1,658
|
asm
|
Assembly
|
dv3/fd/pcf/wphys.asm
|
olifink/smsqe
|
c546d882b26566a46d71820d1539bed9ea8af108
|
[
"BSD-2-Clause"
] | null | null | null |
dv3/fd/pcf/wphys.asm
|
olifink/smsqe
|
c546d882b26566a46d71820d1539bed9ea8af108
|
[
"BSD-2-Clause"
] | null | null | null |
dv3/fd/pcf/wphys.asm
|
olifink/smsqe
|
c546d882b26566a46d71820d1539bed9ea8af108
|
[
"BSD-2-Clause"
] | null | null | null |
; DV3 PC Compatible Floppy Disk Write Sector 1993 Tony Tebby
section dv3
xdef fd_wphys ; write sector (physical layer)
xref fd_cmd_rw
xref fd_stat
xref fd_fint
xref.l fdc_stat
xref.l fdc_data
xref.s fdc.intl
include 'dev8_keys_err'
include 'dev8_dv3_keys'
include 'dev8_dv3_fd_keys'
include 'dev8_dv3_fd_pcf_keys'
include 'dev8_mac_assert'
;+++
; Write sector (physical layer) - no error recovery
;
; d7 c p drive ID / number
; a1 c p address to write from
; a3 c p linkage block
; a4 c p drive definition
;
; status return 0, ERR.MCHK or conventional error
;
;---
fd_wphys
fdw.reg reg d1/d2/a0/a1/a2
movem.l fdw.reg,-(sp)
lea fdc_stat,a0 ; status register address
lea fdc_data-fdc_stat(a0),a2 ; data register address
move.w ddf_slen(a4),d1 ; sector length
subq.w #1,d1 ; allow for dbra
blt.l fdw_mchk ; !!!
move.w sr,-(sp)
move.w #fdc.intl,sr ; ... can we get rid of this???
moveq #fdc.wrsc,d0 ; write sector
jsr fd_cmd_rw
bne.s fdw_mchs
moveq #fdcs.wrd,d2 ; write status
move.l fdl_1sec(a3),d0 ; 1 second timer ish
fdw_wait
cmp.b (a0),d2 ; write?
beq.s fdw_put ; ... yes
bgt.s fdw_stat ; ... failed, status is ready
cmp.b (a0),d2 ; write?
beq.s fdw_put ; ... yes
subq.l #2,d0 ; count down
bgt.s fdw_wait
bra.s fdw_time
fdw_put
move.b (a1)+,(a2) ; put byte
dbra d1,fdw_wait ; loop
fdw_stat
move.w (sp)+,sr
jsr fd_stat ; wait for status at end of command
fdw_exit
movem.l (sp)+,fdw.reg
rts
fdw_time
move.w (sp)+,sr
jsr fd_fint ; interrupt command
bra.s fdw_exit
fdw_mchs
move.w (sp)+,sr
fdw_mchk
moveq #err.mchk,d0
bra.s fdw_exit
end
| 18.422222
| 67
| 0.67491
|
236dbf704e67972e7aa5c68e7552c4a334fc7d52
| 1,344
|
asm
|
Assembly
|
m7/kernel/data.asm
|
paulscottrobson/aquarius-chess
|
d5b4a910f510c2db43ceec1ada347586e4623eed
|
[
"MIT"
] | 1
|
2021-11-20T06:08:58.000Z
|
2021-11-20T06:08:58.000Z
|
m7/kernel/data.asm
|
paulscottrobson/aquarius-chess
|
d5b4a910f510c2db43ceec1ada347586e4623eed
|
[
"MIT"
] | null | null | null |
m7/kernel/data.asm
|
paulscottrobson/aquarius-chess
|
d5b4a910f510c2db43ceec1ada347586e4623eed
|
[
"MIT"
] | null | null | null |
; ***************************************************************************************
; ***************************************************************************************
;
; Name : data.asm
; Author : Paul Robson (paul@robsons.org.uk)
; Date : 15th October 2021
; Purpose : Data
;
; ***************************************************************************************
; ***************************************************************************************
; ***************************************************************************************
;
; Data Area
;
; ***************************************************************************************
DataArea:
;
; Current state of the 3 registers
;
RegA:
.dw $0000
RegB:
.dw $0000
RegC:
.dw $0000
;
; Initial Stack Pointer
;
StackPointer:
.dw $3FFF
;
; Next free code byte
;
CodeNextFree:
.dw FreeSpace
;
; Execute address for startup
;
StartAddress:
.dw Main
;
; Dictionary start (works down)
;
DictionaryBase:
.dw DictionaryInstalledBase
;
; Current work trying to do
;
CurrentWord:
.dw 0
;
; Buffer for reading word
;
wordBuffer:
.ds 17
;
; Buffer for error messages
;
ErrorBuffer:
.ds 17
;
; Random number generator
;
seed1:
.dw $13A7
seed2:
.dw $FEDC
;
; Image Default Colour
;
imageDefaultColour:
.db $75
| 18.162162
| 89
| 0.383929
|
6e958d4e59175e0087fe5c32de7ce609e69d227a
| 330
|
asm
|
Assembly
|
programs/oeis/054/A054087.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/054/A054087.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/054/A054087.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A054087: s(3n-2), s=A054086; also a bisection of A003511.
; 1,4,6,9,12,15,17,20,23,25,28,31,34,36,39,42,45,47,50,53,56,58,61,64,66,69,72,75,77,80,83,86,88,91,94,96,99,102,105,107,110,113,116,118,121,124,127,129,132,135,137,140,143,146,148,151
mul $0,2
seq $0,188070 ; Positions of 1 in A188068; complement of A188069.
sub $0,1
| 47.142857
| 184
| 0.693939
|
370963940d3e74f58dfea18164466c46f10722d7
| 15,079
|
asm
|
Assembly
|
mini.asm
|
MichaHofft/dizzy
|
9813f4fe2801ac4e5f6375892e82668a7d331be1
|
[
"MIT"
] | null | null | null |
mini.asm
|
MichaHofft/dizzy
|
9813f4fe2801ac4e5f6375892e82668a7d331be1
|
[
"MIT"
] | null | null | null |
mini.asm
|
MichaHofft/dizzy
|
9813f4fe2801ac4e5f6375892e82668a7d331be1
|
[
"MIT"
] | null | null | null |
;------------------------------
ENTRY EQU 5 ;entry point for the cp/m bdos.
TFCA EQU 5CH ;default file control block.
TFCB EQU TFCA+1
;------------------------------
ORG 100h
;
hallo: ; START
LD A,$00
LD B,$aa
SET 0,B
SET 7,A
;
LD IY,buf
LD (IY+2),$aa
BIT 3,(IY+2)
BIT 2,(IY+2)
NOP
;
LD IX,buf
LD (IX+2),$55
BIT 3,(IX+2)
BIT 2,(IX+2)
NOP
; BIT TEST
LD HL,buf
LD (HL),$55
BIT 3,(HL)
BIT 2,(HL)
NOP
;
LD A,$aa
BIT 2,A
BIT 3,A
BIT 0,A
LD B,A
BIT 1,B
; INC RR
LD IY,$aa55
INC IY
DEC IY
; --
NOP
; INC/ DEC
LD IY,buf
LD (IY+2),$55
INC (IY+2)
DEC (IY+2)
NOP
LD IX,buf
LD (IX+2),$55
INC (IX+2)
DEC (IX+2)
NOP
LD HL,buf
LD (HL),$aa
INC (HL)
DEC (HL)
NOP
LD B,$00
INC B
DEC B
DEC B
NOP
; CP
LD A,$70
LD B,$70
CP B ; compare A with B, shall have Z set
LD B,$91
CP B
CP $70
CP $90
;
LD IX,buf
LD (IX+2),$70
CP (IX+2)
LD (IX+2),$90
CP (IX+2)
;
LD IY,buf
LD (IY+4),$70
CP (IY+4)
LD (IY+4),$90
CP (IY+4)
;
LD HL,buf
LD (HL),$70
CP (HL)
LD (HL),$90
CP (HL)
; EX (SP),IY
LD SP,10 ; SP is 0x0a
LD BC,$1234
PUSH BC ; SP is 0x08 (0x09 is $12, 0x08 is $34)
POP DE ; SP shall be reset again to 0x0a
PUSH BC ; SP is 0x08
LD IY,$55aa
EX (SP),IY ; reads 0x08, 0x09, will end up 0x0a
NOP ; ASSERT H = $12, L = $34
EX (SP),IY
NOP ; ASSERT H = $55, L = $aa
; EX (SP),IX
LD SP,10 ; SP is 0x0a
LD BC,$1234
PUSH BC ; SP is 0x08 (0x09 is $12, 0x08 is $34)
POP DE ; SP shall be reset again to 0x0a
PUSH BC ; SP is 0x08
LD IX,$55aa
EX (SP),IX ; reads 0x08, 0x09, will end up 0x0a
NOP ; ASSERT H = $12, L = $34
EX (SP),IX
NOP ; ASSERT H = $55, L = $aa
; EX (SP),HL
LD SP,10 ; SP is 0x0a
LD BC,$1234
PUSH BC ; SP is 0x08 (0x09 is $12, 0x08 is $34)
POP DE ; SP shall be reset again to 0x0a
PUSH BC ; SP is 0x08
LD HL,$55aa
EX (SP),HL ; reads 0x08, 0x09, will end up 0x0a
NOP ; ASSERT H = $12, L = $34
EX (SP),HL
NOP ; ASSERT H = $55, L = $aa
; EXX
LD BC,$445a
LD DE,$3da2
LD HL,$8859
EXX
NOP ; ASSERT B = $00, C = $00, D = $00, E = $00, H = $00, L = $00
LD BC,$0988
LD DE,$9300
LD HL,$00e7
EXX
NOP ; ASSERT B = $44, C = $5a, D = $3d, E = $a2, H = $88, L = $59
EXX
NOP ; ASSERT B = $09, C = $88, D = $93, E = $00, H = $00, L = $e7
; EX AF,AF'
LD A,$55
SCF
EX AF,AF'
NOP ; ASSERT A = $00, CY clear
LD A,$aa
EX AF,AF'
NOP ; ASSERT A = $55, CY set
EX AF,AF'
NOP ; ASSERT A = $aa, CY clear
; EX DE.HL
LD DE,$1234
LD HL,$5678
EX DE,HL
NOP ; ASSERT D = $56, E = $78, H = $12, L = $34
; RRD
LD HL,buftmp
LD (HL),00100000b
LD A,10000100b
RRD
LD B,(HL) ; ASSERT B = $42
LD C,A ; ASSERT C = $80
; RLD
LD HL,buftmp
LD (HL),00110001b
LD A,01111010b
RLD
LD B,(HL) ; ASSERT B = $1a
LD C,A ; ASSERT C = $73
; SRL in multiple ways
OR A ; clear carry
LD A,10001111b
SRL A
LD B,A
NOP ; ASSERT B = $47, Cy set
OR A ; clear carry
LD A,10001111b
LD HL,buftmp ; not a constant one
LD (HL),A
SRL (HL)
LD C,(HL)
NOP ; ASSERT C = $47, Cy set
OR A ; clear carry
LD A,10001111b
LD IY,buftmp ; not a constant one
LD (IY+1),A
SRL (IY+1)
LD D,(IY+1)
NOP ; ASSERT D = $47, Cy set
; SRA in multiple ways
OR A ; clear carry
LD A,10111000b
SRA A
LD B,A
NOP ; ASSERT B = $dc, Cy cleared
OR A ; clear carry
LD A,10111000b
LD HL,buftmp ; not a constant one
LD (HL),A
SRA (HL)
LD C,(HL)
NOP ; ASSERT C = $dc, Cy cleared
OR A ; clear carry
LD A,10111000b
LD IY,buftmp ; not a constant one
LD (IY+1),A
SRA (IY+1)
LD D,(IY+1)
NOP ; ASSERT D = $dc, Cy cleared
; SLA in multiple ways
OR A ; clear carry
LD A,10110001b
SLA A
LD B,A
NOP ; ASSERT B = $62, Cy set
OR A ; clear carry
LD A,10110001b
LD HL,buftmp ; not a constant one
LD (HL),A
SLA (HL)
LD C,(HL)
NOP ; ASSERT C = $62, Cy set
OR A ; clear carry
LD A,10110001b
LD IY,buftmp ; not a constant one
LD (IY+1),A
SLA (IY+1)
LD D,(IY+1)
NOP ; ASSERT D = $62, Cy set
; RRC further
LD IY,buftmp ; not a constant one
LD A,00110001b
LD (IY+3),A
OR A ; clears carry?
RRC (IY+3) ; shall by CY, $98
LD C,(IY+3)
NOP
NOP
; RR further
LD HL,buftmp ; not a constant one
LD A,11011101b
LD (HL),A
OR A ; clears carry?
RR (HL) ; shall by CY, $6e
LD B,(HL)
NOP
NOP
; RL further
LD IY,buftmp ; not a constant one
LD A,10001111b
LD (IY+4),A
RL (IY+4) ; shall by CY, $1e
LD B,(IY+2)
NOP
NOP
LD B,10001000b
RL B ; shall be CY, %00010001 = $11
NOP
LD HL,buftmp ; not a constant one
LD A,11001100b
LD (HL),A
RL (HL) ; shall by CY, $99
LD A,(HL)
NOP
; RLC further
LD IY,buftmp ; not a constant one
LD A,11001100b
LD (IY+4),A
RLC (IY+4) ; shall by CY, $99
LD B,(IY+2)
NOP
NOP
LD B,10001000b
RLC B ; shall be CY, %00010001 = $11
NOP
LD HL,buftmp ; not a constant one
LD A,11001100b
LD (HL),A
RLC (HL) ; shall by CY, $99
LD A,(HL)
NOP
; RRA
LD A,11100001b
OR A
RRA ; shall be CY, %01110000 = $70
NOP
; RRCA
LD A,00010001b
RRCA ; shall be CY, %10001000 = $88
NOP
; RLA
LD A,01110110b
SCF
RLA ; shall be no CY, %11101101 = $ed
NOP
; RLCA
LD A,10000001b
RLCA ; shall be CY, %00000011 = $03
NOP
; XOR
LD A, $55
LD B, $aa
XOR B ; shall be $ff
XOR $01 ; shall be $fe, Signed
LD IX,buf7 ; is 43, 44, 45, 255
XOR (IX+3) ; $01
NOP
; AND
LD A, $ff
LD B, $aa
AND B ; shall be $aa
AND $22 ; shall be $22
LD HL,buf2 ; is 5
AND (HL) ; $00, Zero
NOP
; OR
LD A, $55
LD B, $aa
OR B ; shall be $ff
LD A, $11
OR $88 ; shall be $99
LD HL,buf2 ; is 5
OR (HL) ; $99+5 = $9d
SCF ; CY is 1
OR A ; still $9d, but CY is 0
NOP
; ADD
LD A,42
LD B,A
ADD A,B ; 84, kein Carry
LD C,230
ADD A,C ; 84 + 230 -> 58, Carry!
; SUB
LD A,58
LD D,55
SUB D ; shall be 3,
SUB 3 ; shall be 0, Sign
LD IX,buf ; buf = 1,2,3,4..
SUB (IX+0) ; A shall be $ff
LD IY,buf
SUB (IY+1) ; A shall be $fd
; SBC (with Carry)
LD A,59
LD D,55
SCF ; set CY
SBC A,D ; shall be 3,
SCF ; set CY
SBC A,3 ; shall be ff, Carry (Borrow!)
LD IX,buf ; buf = 1,2,3,4..
SBC A,(IX+0) ; A shall be $ff
LD IY,buf
SBC A,(IY+1) ; A shall be $fd
ADD A,42 ; shall be 42 again
LD HL,buf7
ADD A,(HL) ; 85
LD IX,buf7
ADD A,(IX+2) ; 85 + 45 = 130
NOP
LD IX,buf
LD C,(IX+1)
LD HL,buf2
LD (HL),C
LD D,(HL)
LD (IX+-2),D
LD (HL),$5a
LD (IX+-4),$a5
LD A,(BC)
LD A,11
LD A,(buf2+3)
LD A,$55
LD BC,buf
LD (BC),A
LD A,$77
LD DE,buf
LD (DE),A
LD A,$99
LD (buf),A
LD A,$32
LD I,A
LD A,$43
LD R,A
LD A,I ; A to be $32
LD A,R ; A to be $43
LD IX,buf
LD IY,$55aa
LD HL,(buf4) ; HL to be $200
LD BC,(buf) ; BC to be $0201
LD DE,(buf+1) ; DE to be $0302
LD SP,(buf+2) ; SP to be $0403
LD IX,(buf+3) ; SP to be $0504
LD IY,(buf+4) ; SP to be $0605
LD (buf6),HL
LD (buf+1),BC
LD (buf+2),DE
LD (buf+3),SP
LD (buf+4),IX
LD (buf+5),IY
LD SP,HL
LD SP,IX
LD SP,IY
LD SP,spend
PUSH BC
PUSH DE
PUSH HL
PUSH AF
PUSH IX
PUSH IY
POP BC
POP IX
NOP
INC HL
RL (HL)
LD A,TFCB
LD HL,1223H
LD BC, buf
JR hallo
JP hallo
TFCC EQU $
TFCD EQU $+20
hallo2:
LD A,(HL)
LD (BC),A
LD (5),A
LD A,(IX+5h)
LD (IY+12),A
LD BC,(buf)
LD HL,buf2
;
; Routine to convert (A) into upper case ascii. Only letters
; are affected.
;
UPPER: CP 'a' ;check for letters in the range of 'a' to 'z'.
RET C
CP '{'
RET NC
AND 5FH ;convert it if found.
RET
ORG $400
buf: DB 1,2,3,4,
buf2: DB 5,6,7,8,9,10
buf4: DEFW $200
buf6: DEFW $5aa5
DEFW $a55a
DEFW $1234
DEFW $4321
buf7: DB 43
DB 44
DB 45
DB 255
buf3: ; arithmetic test suite ... see http://benryves.com/bin/brass/manual.htm#labels
DEFW -1 ; $ffff
DEFW -2 ; $feff
DEFW 17+5 ; $16
DEFW 17-5 ; $0c
DEFW 17*5 ; $55
DEFW 17/5 ; $03
DEFW 17%5 ; $02
DEFW 15&7 ; $07
DEFW 4|3 ; $07
DEFW 3^15 ; $0c
DEFW !1 ; $00
DEFW !0 ; $01
DEFW ~1 ; $feff
DEFW 1 && 1 ; $01
DEFW 1 && 0 ; $00
DEFW 1 || 0 ; $01
DEFW 1 << 8 ; $0001
DEFW 8 >> 2 ; $02
DEFW 5 + 1 ; $04
DEFW 8 == 4*2 ; $01
DEFW 1+2 != 2+1 ; $00
DEFW 7 < 15 ; $01
DEFW 15 < 7 ; $00
DEFW 7 > 15 ; $00
DEFW 15 > -15 ; $01
DEFW 4 <= 4 ; $01
DEFW -4 <= -4 ; $01
DEFB 33*2+4 ; $46
DEFB 2*(36-(2*2))/ 17 *3 ; $03
DEFB 1,2,3,4,5,6,7
DEFB 'Hallo \n\\\xaa\x55\r world!'
buf5: EQU 2000h
DEFB 34,56h,"Long term evolution\0\0"
ORG $600
buftmp: DEFB 0,0,0,0
spstrt: DEFB 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
DEFB 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
DEFB 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
DEFB 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
spend: DEFB 255
| 30.279116
| 93
| 0.313947
|
8265654c7886aa5f6fc3eb5f5fb1db9feb13bd4b
| 572
|
asm
|
Assembly
|
oeis/004/A004368.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/004/A004368.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/004/A004368.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A004368: Binomial coefficient C(7n,n).
; 1,7,91,1330,20475,324632,5245786,85900584,1420494075,23667689815,396704524216,6681687099710,112992892764570,1917283000904460,32626924340528840,556608279578340080,9516306085765295355,163011740982048945441,2797093093529137508875,48067713240101240686000,827163809330939321148600,14251607515312881700258272,245822212043198090023601430,4244441336827782069002987600,73354155803288824371235709850,1268822473965279199638714105882,21964431474217462812712934302044,380501445319701062945974888103602
mov $1,7
mul $1,$0
bin $1,$0
mov $0,$1
| 71.5
| 490
| 0.893357
|
7c407d83bd55b37698be0bd8f8db57cb96bacce4
| 531
|
asm
|
Assembly
|
test/e2e/data/arm5.asm
|
matanlurey/armv4t.dart
|
06235938d16cb1f2b09d26f564b985854e4155c0
|
[
"MIT"
] | 8
|
2020-06-21T22:05:00.000Z
|
2021-10-06T19:59:20.000Z
|
test/e2e/data/arm5.asm
|
matanlurey/armv4t.dart
|
06235938d16cb1f2b09d26f564b985854e4155c0
|
[
"MIT"
] | 82
|
2020-06-21T22:02:00.000Z
|
2020-08-04T01:48:42.000Z
|
test/e2e/data/arm5.asm
|
matanlurey/armv4t.dart
|
06235938d16cb1f2b09d26f564b985854e4155c0
|
[
"MIT"
] | 1
|
2020-06-22T15:16:02.000Z
|
2020-06-22T15:16:02.000Z
|
; expected result: 0x100 = 0xf000, 0x104 = 0xfff0, 0x108 = 0x104
mov r11, #0x100 ; r11 = 0x100
mov r0, #0xff000 ; r0 = 0xff000
strh r0, [r11, -r1] ; @0x100 - 0 = 0xff000
; @0x100 = 0xff000
ldrsb r1, [r11, #1] ; r1 = @r11 + 1
; r1 = @0x100 + 1
; r1 = @0x101
; r1 = <Part of 0xff000>
strh r1, [r11, #4]! ;
mov r12, r11 ;
str r12, [r11, #4] ; @0x108 = 0x108
| 35.4
| 64
| 0.391714
|
0f386abbed4c3412fb470331ee93b3bd4214ba8c
| 17,498
|
asm
|
Assembly
|
programs/quake/q1source/QW/client/surf8.asm
|
chaos4ever/chaos-old
|
97d96d78d0b5f7961b9b062ccfcdbad2f977b0fa
|
[
"BSD-3-Clause"
] | null | null | null |
programs/quake/q1source/QW/client/surf8.asm
|
chaos4ever/chaos-old
|
97d96d78d0b5f7961b9b062ccfcdbad2f977b0fa
|
[
"BSD-3-Clause"
] | 1
|
2019-12-10T15:47:15.000Z
|
2019-12-10T15:47:15.000Z
|
Games/Quake I/QW/client/surf8.asm
|
TwTravel/3dGameGuru
|
50f204da32b7d3ddcbdb0daf140d503eac424153
|
[
"Unlicense"
] | null | null | null |
.386P
.model FLAT
externdef _d_zistepu:dword
externdef _d_pzbuffer:dword
externdef _d_zistepv:dword
externdef _d_zrowbytes:dword
externdef _d_ziorigin:dword
externdef _r_turb_s:dword
externdef _r_turb_t:dword
externdef _r_turb_pdest:dword
externdef _r_turb_spancount:dword
externdef _r_turb_turb:dword
externdef _r_turb_pbase:dword
externdef _r_turb_sstep:dword
externdef _r_turb_tstep:dword
externdef _r_bmodelactive:dword
externdef _d_sdivzstepu:dword
externdef _d_tdivzstepu:dword
externdef _d_sdivzstepv:dword
externdef _d_tdivzstepv:dword
externdef _d_sdivzorigin:dword
externdef _d_tdivzorigin:dword
externdef _sadjust:dword
externdef _tadjust:dword
externdef _bbextents:dword
externdef _bbextentt:dword
externdef _cacheblock:dword
externdef _d_viewbuffer:dword
externdef _cachewidth:dword
externdef _d_pzbuffer:dword
externdef _d_zrowbytes:dword
externdef _d_zwidth:dword
externdef _d_scantable:dword
externdef _r_lightptr:dword
externdef _r_numvblocks:dword
externdef _prowdestbase:dword
externdef _pbasesource:dword
externdef _r_lightwidth:dword
externdef _lightright:dword
externdef _lightrightstep:dword
externdef _lightdeltastep:dword
externdef _lightdelta:dword
externdef _lightright:dword
externdef _lightdelta:dword
externdef _sourcetstep:dword
externdef _surfrowbytes:dword
externdef _lightrightstep:dword
externdef _lightdeltastep:dword
externdef _r_sourcemax:dword
externdef _r_stepback:dword
externdef _colormap:dword
externdef _blocksize:dword
externdef _sourcesstep:dword
externdef _lightleft:dword
externdef _blockdivshift:dword
externdef _blockdivmask:dword
externdef _lightleftstep:dword
externdef _r_origin:dword
externdef _r_ppn:dword
externdef _r_pup:dword
externdef _r_pright:dword
externdef _ycenter:dword
externdef _xcenter:dword
externdef _d_vrectbottom_particle:dword
externdef _d_vrectright_particle:dword
externdef _d_vrecty:dword
externdef _d_vrectx:dword
externdef _d_pix_shift:dword
externdef _d_pix_min:dword
externdef _d_pix_max:dword
externdef _d_y_aspect_shift:dword
externdef _screenwidth:dword
externdef _vright:dword
externdef _vup:dword
externdef _vpn:dword
externdef _BOPS_Error:dword
externdef _snd_scaletable:dword
externdef _paintbuffer:dword
externdef _snd_linear_count:dword
externdef _snd_p:dword
externdef _snd_vol:dword
externdef _snd_out:dword
externdef _r_leftclipped:dword
externdef _r_leftenter:dword
externdef _r_rightclipped:dword
externdef _r_rightenter:dword
externdef _modelorg:dword
externdef _xscale:dword
externdef _r_refdef:dword
externdef _yscale:dword
externdef _r_leftexit:dword
externdef _r_rightexit:dword
externdef _r_lastvertvalid:dword
externdef _cacheoffset:dword
externdef _newedges:dword
externdef _removeedges:dword
externdef _r_pedge:dword
externdef _r_framecount:dword
externdef _r_u1:dword
externdef _r_emitted:dword
externdef _edge_p:dword
externdef _surface_p:dword
externdef _surfaces:dword
externdef _r_lzi1:dword
externdef _r_v1:dword
externdef _r_ceilv1:dword
externdef _r_nearzi:dword
externdef _r_nearzionly:dword
externdef _edge_aftertail:dword
externdef _edge_tail:dword
externdef _current_iv:dword
externdef _edge_head_u_shift20:dword
externdef _span_p:dword
externdef _edge_head:dword
externdef _fv:dword
externdef _edge_tail_u_shift20:dword
externdef _r_apverts:dword
externdef _r_anumverts:dword
externdef _aliastransform:dword
externdef _r_avertexnormals:dword
externdef _r_plightvec:dword
externdef _r_ambientlight:dword
externdef _r_shadelight:dword
externdef _aliasxcenter:dword
externdef _aliasycenter:dword
externdef _a_sstepxfrac:dword
externdef _r_affinetridesc:dword
externdef _acolormap:dword
externdef _d_pcolormap:dword
externdef _r_affinetridesc:dword
externdef _d_sfrac:dword
externdef _d_ptex:dword
externdef _d_pedgespanpackage:dword
externdef _d_tfrac:dword
externdef _d_light:dword
externdef _d_zi:dword
externdef _d_pdest:dword
externdef _d_pz:dword
externdef _d_aspancount:dword
externdef _erroradjustup:dword
externdef _errorterm:dword
externdef _d_xdenom:dword
externdef _r_p0:dword
externdef _r_p1:dword
externdef _r_p2:dword
externdef _a_tstepxfrac:dword
externdef _r_sstepx:dword
externdef _r_tstepx:dword
externdef _a_ststepxwhole:dword
externdef _zspantable:dword
externdef _skintable:dword
externdef _r_zistepx:dword
externdef _erroradjustdown:dword
externdef _d_countextrastep:dword
externdef _ubasestep:dword
externdef _a_ststepxwhole:dword
externdef _a_tstepxfrac:dword
externdef _r_lstepx:dword
externdef _a_spans:dword
externdef _erroradjustdown:dword
externdef _d_pdestextrastep:dword
externdef _d_pzextrastep:dword
externdef _d_sfracextrastep:dword
externdef _d_ptexextrastep:dword
externdef _d_countextrastep:dword
externdef _d_tfracextrastep:dword
externdef _d_lightextrastep:dword
externdef _d_ziextrastep:dword
externdef _d_pdestbasestep:dword
externdef _d_pzbasestep:dword
externdef _d_sfracbasestep:dword
externdef _d_ptexbasestep:dword
externdef _ubasestep:dword
externdef _d_tfracbasestep:dword
externdef _d_lightbasestep:dword
externdef _d_zibasestep:dword
externdef _zspantable:dword
externdef _r_lstepy:dword
externdef _r_sstepy:dword
externdef _r_tstepy:dword
externdef _r_zistepy:dword
externdef _D_PolysetSetEdgeTable:dword
externdef _D_RasterizeAliasPolySmooth:dword
externdef float_point5:dword
externdef Float2ToThe31nd:dword
externdef izistep:dword
externdef izi:dword
externdef FloatMinus2ToThe31nd:dword
externdef float_1:dword
externdef float_particle_z_clip:dword
externdef float_minus_1:dword
externdef float_0:dword
externdef fp_16:dword
externdef fp_64k:dword
externdef fp_1m:dword
externdef fp_1m_minus_1:dword
externdef fp_8:dword
externdef entryvec_table:dword
externdef advancetable:dword
externdef sstep:dword
externdef tstep:dword
externdef pspantemp:dword
externdef counttemp:dword
externdef jumptemp:dword
externdef reciprocal_table:dword
externdef DP_Count:dword
externdef DP_u:dword
externdef DP_v:dword
externdef DP_32768:dword
externdef DP_Color:dword
externdef DP_Pix:dword
externdef DP_EntryTable:dword
externdef pbase:dword
externdef s:dword
externdef t:dword
externdef sfracf:dword
externdef tfracf:dword
externdef snext:dword
externdef tnext:dword
externdef spancountminus1:dword
externdef zi16stepu:dword
externdef sdivz16stepu:dword
externdef tdivz16stepu:dword
externdef zi8stepu:dword
externdef sdivz8stepu:dword
externdef tdivz8stepu:dword
externdef reciprocal_table_16:dword
externdef entryvec_table_16:dword
externdef ceil_cw:dword
externdef single_cw:dword
externdef fp_64kx64k:dword
externdef pz:dword
externdef spr8entryvec_table:dword
_DATA SEGMENT
sb_v dd 0
_DATA ENDS
_TEXT SEGMENT
align 4
public _R_Surf8Start
_R_Surf8Start:
align 4
public _R_DrawSurfaceBlock8_mip0
_R_DrawSurfaceBlock8_mip0:
push ebp
push edi
push esi
push ebx
mov ebx,ds:dword ptr[_r_lightptr]
mov eax,ds:dword ptr[_r_numvblocks]
mov ds:dword ptr[sb_v],eax
mov edi,ds:dword ptr[_prowdestbase]
mov esi,ds:dword ptr[_pbasesource]
Lv_loop_mip0:
mov eax,ds:dword ptr[ebx]
mov edx,ds:dword ptr[4+ebx]
mov ebp,eax
mov ecx,ds:dword ptr[_r_lightwidth]
mov ds:dword ptr[_lightright],edx
sub ebp,edx
and ebp,0FFFFFh
lea ebx,ds:dword ptr[ebx+ecx*4]
mov ds:dword ptr[_r_lightptr],ebx
mov ecx,ds:dword ptr[4+ebx]
mov ebx,ds:dword ptr[ebx]
sub ebx,eax
sub ecx,edx
sar ecx,4
or ebp,0F0000000h
sar ebx,4
mov ds:dword ptr[_lightrightstep],ecx
sub ebx,ecx
and ebx,0FFFFFh
or ebx,0F0000000h
sub ecx,ecx
mov ds:dword ptr[_lightdeltastep],ebx
sub ebx,ebx
Lblockloop8_mip0:
mov ds:dword ptr[_lightdelta],ebp
mov cl,ds:byte ptr[14+esi]
sar ebp,4
mov bh,dh
mov bl,ds:byte ptr[15+esi]
add edx,ebp
mov ch,dh
add edx,ebp
mov ah,ds:byte ptr[12345678h+ebx]
LBPatch0:
mov bl,ds:byte ptr[13+esi]
mov al,ds:byte ptr[12345678h+ecx]
LBPatch1:
mov cl,ds:byte ptr[12+esi]
mov bh,dh
add edx,ebp
ror eax,16
mov ch,dh
add edx,ebp
mov ah,ds:byte ptr[12345678h+ebx]
LBPatch2:
mov bl,ds:byte ptr[11+esi]
mov al,ds:byte ptr[12345678h+ecx]
LBPatch3:
mov cl,ds:byte ptr[10+esi]
mov ds:dword ptr[12+edi],eax
mov bh,dh
add edx,ebp
mov ch,dh
add edx,ebp
mov ah,ds:byte ptr[12345678h+ebx]
LBPatch4:
mov bl,ds:byte ptr[9+esi]
mov al,ds:byte ptr[12345678h+ecx]
LBPatch5:
mov cl,ds:byte ptr[8+esi]
mov bh,dh
add edx,ebp
ror eax,16
mov ch,dh
add edx,ebp
mov ah,ds:byte ptr[12345678h+ebx]
LBPatch6:
mov bl,ds:byte ptr[7+esi]
mov al,ds:byte ptr[12345678h+ecx]
LBPatch7:
mov cl,ds:byte ptr[6+esi]
mov ds:dword ptr[8+edi],eax
mov bh,dh
add edx,ebp
mov ch,dh
add edx,ebp
mov ah,ds:byte ptr[12345678h+ebx]
LBPatch8:
mov bl,ds:byte ptr[5+esi]
mov al,ds:byte ptr[12345678h+ecx]
LBPatch9:
mov cl,ds:byte ptr[4+esi]
mov bh,dh
add edx,ebp
ror eax,16
mov ch,dh
add edx,ebp
mov ah,ds:byte ptr[12345678h+ebx]
LBPatch10:
mov bl,ds:byte ptr[3+esi]
mov al,ds:byte ptr[12345678h+ecx]
LBPatch11:
mov cl,ds:byte ptr[2+esi]
mov ds:dword ptr[4+edi],eax
mov bh,dh
add edx,ebp
mov ch,dh
add edx,ebp
mov ah,ds:byte ptr[12345678h+ebx]
LBPatch12:
mov bl,ds:byte ptr[1+esi]
mov al,ds:byte ptr[12345678h+ecx]
LBPatch13:
mov cl,ds:byte ptr[esi]
mov bh,dh
add edx,ebp
ror eax,16
mov ch,dh
mov ah,ds:byte ptr[12345678h+ebx]
LBPatch14:
mov edx,ds:dword ptr[_lightright]
mov al,ds:byte ptr[12345678h+ecx]
LBPatch15:
mov ebp,ds:dword ptr[_lightdelta]
mov ds:dword ptr[edi],eax
add esi,ds:dword ptr[_sourcetstep]
add edi,ds:dword ptr[_surfrowbytes]
add edx,ds:dword ptr[_lightrightstep]
add ebp,ds:dword ptr[_lightdeltastep]
mov ds:dword ptr[_lightright],edx
jc Lblockloop8_mip0
cmp esi,ds:dword ptr[_r_sourcemax]
jb LSkip_mip0
sub esi,ds:dword ptr[_r_stepback]
LSkip_mip0:
mov ebx,ds:dword ptr[_r_lightptr]
dec ds:dword ptr[sb_v]
jnz Lv_loop_mip0
pop ebx
pop esi
pop edi
pop ebp
ret
align 4
public _R_DrawSurfaceBlock8_mip1
_R_DrawSurfaceBlock8_mip1:
push ebp
push edi
push esi
push ebx
mov ebx,ds:dword ptr[_r_lightptr]
mov eax,ds:dword ptr[_r_numvblocks]
mov ds:dword ptr[sb_v],eax
mov edi,ds:dword ptr[_prowdestbase]
mov esi,ds:dword ptr[_pbasesource]
Lv_loop_mip1:
mov eax,ds:dword ptr[ebx]
mov edx,ds:dword ptr[4+ebx]
mov ebp,eax
mov ecx,ds:dword ptr[_r_lightwidth]
mov ds:dword ptr[_lightright],edx
sub ebp,edx
and ebp,0FFFFFh
lea ebx,ds:dword ptr[ebx+ecx*4]
mov ds:dword ptr[_r_lightptr],ebx
mov ecx,ds:dword ptr[4+ebx]
mov ebx,ds:dword ptr[ebx]
sub ebx,eax
sub ecx,edx
sar ecx,3
or ebp,070000000h
sar ebx,3
mov ds:dword ptr[_lightrightstep],ecx
sub ebx,ecx
and ebx,0FFFFFh
or ebx,0F0000000h
sub ecx,ecx
mov ds:dword ptr[_lightdeltastep],ebx
sub ebx,ebx
Lblockloop8_mip1:
mov ds:dword ptr[_lightdelta],ebp
mov cl,ds:byte ptr[6+esi]
sar ebp,3
mov bh,dh
mov bl,ds:byte ptr[7+esi]
add edx,ebp
mov ch,dh
add edx,ebp
mov ah,ds:byte ptr[12345678h+ebx]
LBPatch22:
mov bl,ds:byte ptr[5+esi]
mov al,ds:byte ptr[12345678h+ecx]
LBPatch23:
mov cl,ds:byte ptr[4+esi]
mov bh,dh
add edx,ebp
ror eax,16
mov ch,dh
add edx,ebp
mov ah,ds:byte ptr[12345678h+ebx]
LBPatch24:
mov bl,ds:byte ptr[3+esi]
mov al,ds:byte ptr[12345678h+ecx]
LBPatch25:
mov cl,ds:byte ptr[2+esi]
mov ds:dword ptr[4+edi],eax
mov bh,dh
add edx,ebp
mov ch,dh
add edx,ebp
mov ah,ds:byte ptr[12345678h+ebx]
LBPatch26:
mov bl,ds:byte ptr[1+esi]
mov al,ds:byte ptr[12345678h+ecx]
LBPatch27:
mov cl,ds:byte ptr[esi]
mov bh,dh
add edx,ebp
ror eax,16
mov ch,dh
mov ah,ds:byte ptr[12345678h+ebx]
LBPatch28:
mov edx,ds:dword ptr[_lightright]
mov al,ds:byte ptr[12345678h+ecx]
LBPatch29:
mov ebp,ds:dword ptr[_lightdelta]
mov ds:dword ptr[edi],eax
mov eax,ds:dword ptr[_sourcetstep]
add esi,eax
mov eax,ds:dword ptr[_surfrowbytes]
add edi,eax
mov eax,ds:dword ptr[_lightrightstep]
add edx,eax
mov eax,ds:dword ptr[_lightdeltastep]
add ebp,eax
mov ds:dword ptr[_lightright],edx
jc Lblockloop8_mip1
cmp esi,ds:dword ptr[_r_sourcemax]
jb LSkip_mip1
sub esi,ds:dword ptr[_r_stepback]
LSkip_mip1:
mov ebx,ds:dword ptr[_r_lightptr]
dec ds:dword ptr[sb_v]
jnz Lv_loop_mip1
pop ebx
pop esi
pop edi
pop ebp
ret
align 4
public _R_DrawSurfaceBlock8_mip2
_R_DrawSurfaceBlock8_mip2:
push ebp
push edi
push esi
push ebx
mov ebx,ds:dword ptr[_r_lightptr]
mov eax,ds:dword ptr[_r_numvblocks]
mov ds:dword ptr[sb_v],eax
mov edi,ds:dword ptr[_prowdestbase]
mov esi,ds:dword ptr[_pbasesource]
Lv_loop_mip2:
mov eax,ds:dword ptr[ebx]
mov edx,ds:dword ptr[4+ebx]
mov ebp,eax
mov ecx,ds:dword ptr[_r_lightwidth]
mov ds:dword ptr[_lightright],edx
sub ebp,edx
and ebp,0FFFFFh
lea ebx,ds:dword ptr[ebx+ecx*4]
mov ds:dword ptr[_r_lightptr],ebx
mov ecx,ds:dword ptr[4+ebx]
mov ebx,ds:dword ptr[ebx]
sub ebx,eax
sub ecx,edx
sar ecx,2
or ebp,030000000h
sar ebx,2
mov ds:dword ptr[_lightrightstep],ecx
sub ebx,ecx
and ebx,0FFFFFh
or ebx,0F0000000h
sub ecx,ecx
mov ds:dword ptr[_lightdeltastep],ebx
sub ebx,ebx
Lblockloop8_mip2:
mov ds:dword ptr[_lightdelta],ebp
mov cl,ds:byte ptr[2+esi]
sar ebp,2
mov bh,dh
mov bl,ds:byte ptr[3+esi]
add edx,ebp
mov ch,dh
add edx,ebp
mov ah,ds:byte ptr[12345678h+ebx]
LBPatch18:
mov bl,ds:byte ptr[1+esi]
mov al,ds:byte ptr[12345678h+ecx]
LBPatch19:
mov cl,ds:byte ptr[esi]
mov bh,dh
add edx,ebp
ror eax,16
mov ch,dh
mov ah,ds:byte ptr[12345678h+ebx]
LBPatch20:
mov edx,ds:dword ptr[_lightright]
mov al,ds:byte ptr[12345678h+ecx]
LBPatch21:
mov ebp,ds:dword ptr[_lightdelta]
mov ds:dword ptr[edi],eax
mov eax,ds:dword ptr[_sourcetstep]
add esi,eax
mov eax,ds:dword ptr[_surfrowbytes]
add edi,eax
mov eax,ds:dword ptr[_lightrightstep]
add edx,eax
mov eax,ds:dword ptr[_lightdeltastep]
add ebp,eax
mov ds:dword ptr[_lightright],edx
jc Lblockloop8_mip2
cmp esi,ds:dword ptr[_r_sourcemax]
jb LSkip_mip2
sub esi,ds:dword ptr[_r_stepback]
LSkip_mip2:
mov ebx,ds:dword ptr[_r_lightptr]
dec ds:dword ptr[sb_v]
jnz Lv_loop_mip2
pop ebx
pop esi
pop edi
pop ebp
ret
align 4
public _R_DrawSurfaceBlock8_mip3
_R_DrawSurfaceBlock8_mip3:
push ebp
push edi
push esi
push ebx
mov ebx,ds:dword ptr[_r_lightptr]
mov eax,ds:dword ptr[_r_numvblocks]
mov ds:dword ptr[sb_v],eax
mov edi,ds:dword ptr[_prowdestbase]
mov esi,ds:dword ptr[_pbasesource]
Lv_loop_mip3:
mov eax,ds:dword ptr[ebx]
mov edx,ds:dword ptr[4+ebx]
mov ebp,eax
mov ecx,ds:dword ptr[_r_lightwidth]
mov ds:dword ptr[_lightright],edx
sub ebp,edx
and ebp,0FFFFFh
lea ebx,ds:dword ptr[ebx+ecx*4]
mov ds:dword ptr[_lightdelta],ebp
mov ds:dword ptr[_r_lightptr],ebx
mov ecx,ds:dword ptr[4+ebx]
mov ebx,ds:dword ptr[ebx]
sub ebx,eax
sub ecx,edx
sar ecx,1
sar ebx,1
mov ds:dword ptr[_lightrightstep],ecx
sub ebx,ecx
and ebx,0FFFFFh
sar ebp,1
or ebx,0F0000000h
mov ds:dword ptr[_lightdeltastep],ebx
sub ebx,ebx
mov bl,ds:byte ptr[1+esi]
sub ecx,ecx
mov bh,dh
mov cl,ds:byte ptr[esi]
add edx,ebp
mov ch,dh
mov al,ds:byte ptr[12345678h+ebx]
LBPatch16:
mov edx,ds:dword ptr[_lightright]
mov ds:byte ptr[1+edi],al
mov al,ds:byte ptr[12345678h+ecx]
LBPatch17:
mov ds:byte ptr[edi],al
mov eax,ds:dword ptr[_sourcetstep]
add esi,eax
mov eax,ds:dword ptr[_surfrowbytes]
add edi,eax
mov eax,ds:dword ptr[_lightdeltastep]
mov ebp,ds:dword ptr[_lightdelta]
mov cl,ds:byte ptr[esi]
add ebp,eax
mov eax,ds:dword ptr[_lightrightstep]
sar ebp,1
add edx,eax
mov bh,dh
mov bl,ds:byte ptr[1+esi]
add edx,ebp
mov ch,dh
mov al,ds:byte ptr[12345678h+ebx]
LBPatch30:
mov edx,ds:dword ptr[_sourcetstep]
mov ds:byte ptr[1+edi],al
mov al,ds:byte ptr[12345678h+ecx]
LBPatch31:
mov ds:byte ptr[edi],al
mov ebp,ds:dword ptr[_surfrowbytes]
add esi,edx
add edi,ebp
cmp esi,ds:dword ptr[_r_sourcemax]
jb LSkip_mip3
sub esi,ds:dword ptr[_r_stepback]
LSkip_mip3:
mov ebx,ds:dword ptr[_r_lightptr]
dec ds:dword ptr[sb_v]
jnz Lv_loop_mip3
pop ebx
pop esi
pop edi
pop ebp
ret
public _R_Surf8End
_R_Surf8End:
_TEXT ENDS
_DATA SEGMENT
align 4
LPatchTable8:
dd LBPatch0-4
dd LBPatch1-4
dd LBPatch2-4
dd LBPatch3-4
dd LBPatch4-4
dd LBPatch5-4
dd LBPatch6-4
dd LBPatch7-4
dd LBPatch8-4
dd LBPatch9-4
dd LBPatch10-4
dd LBPatch11-4
dd LBPatch12-4
dd LBPatch13-4
dd LBPatch14-4
dd LBPatch15-4
dd LBPatch16-4
dd LBPatch17-4
dd LBPatch18-4
dd LBPatch19-4
dd LBPatch20-4
dd LBPatch21-4
dd LBPatch22-4
dd LBPatch23-4
dd LBPatch24-4
dd LBPatch25-4
dd LBPatch26-4
dd LBPatch27-4
dd LBPatch28-4
dd LBPatch29-4
dd LBPatch30-4
dd LBPatch31-4
_DATA ENDS
_TEXT SEGMENT
align 4
public _R_Surf8Patch
_R_Surf8Patch:
push ebx
mov eax,ds:dword ptr[_colormap]
mov ebx,offset LPatchTable8
mov ecx,32
LPatchLoop8:
mov edx,ds:dword ptr[ebx]
add ebx,4
mov ds:dword ptr[edx],eax
dec ecx
jnz LPatchLoop8
pop ebx
ret
_TEXT ENDS
END
| 24.302778
| 45
| 0.758487
|
a83bcb53d64f497683ac9f4a97d3fe5b39ecaa3a
| 3,681
|
asm
|
Assembly
|
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca_notsx.log_21829_1097.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca_notsx.log_21829_1097.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca_notsx.log_21829_1097.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r8
push %rax
push %rbx
push %rcx
// Faulty Load
mov $0x2836620000000ae8, %rbx
clflush (%rbx)
nop
nop
nop
nop
nop
cmp $19128, %rcx
mov (%rbx), %eax
lea oracles, %rcx
and $0xff, %rax
shlq $12, %rax
mov (%rcx,%rax,1), %rax
pop %rcx
pop %rbx
pop %rax
pop %r8
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}}
<gen_prepare_buffer>
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 87.642857
| 2,999
| 0.663678
|
4c7abc200fe54464b3859bb52410dac906cf5d40
| 1,574
|
asm
|
Assembly
|
home/vblank.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | 1
|
2022-02-15T00:19:44.000Z
|
2022-02-15T00:19:44.000Z
|
home/vblank.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | null | null | null |
home/vblank.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | null | null | null |
VBlank::
push af
push bc
push de
push hl
ldh a, [hLoadedROMBank]
ld [wVBlankSavedROMBank], a
ldh a, [hSCX]
ldh [rSCX], a
ldh a, [hSCY]
ldh [rSCY], a
ld a, [wDisableVBlankWYUpdate]
and a
jr nz, .ok
ldh a, [hWY]
ldh [rWY], a
.ok
call AutoBgMapTransfer
call VBlankCopyBgMap
call RedrawRowOrColumn
call VBlankCopy
call VBlankCopyDouble
call UpdateMovingBgTiles
call hDMARoutine
ld a, BANK(PrepareOAMData)
ldh [hLoadedROMBank], a
ld [MBC1RomBank], a
call PrepareOAMData
; VBlank-sensitive operations end.
call Random
ldh a, [hVBlankOccurred]
and a
jr z, .skipZeroing
xor a
ldh [hVBlankOccurred], a
.skipZeroing
ldh a, [hFrameCounter]
and a
jr z, .skipDec
dec a
ldh [hFrameCounter], a
.skipDec
call FadeOutAudio
ld a, [wAudioROMBank] ; music ROM bank
ldh [hLoadedROMBank], a
ld [MBC1RomBank], a
cp BANK(Audio1_UpdateMusic)
jr nz, .checkForAudio2
.audio1
call Audio1_UpdateMusic
jr .afterMusic
.checkForAudio2
cp BANK(Audio2_UpdateMusic)
jr nz, .audio3
.audio2
call Music_DoLowHealthAlarm
call Audio2_UpdateMusic
jr .afterMusic
.audio3
call Audio3_UpdateMusic
.afterMusic
farcall TrackPlayTime ; keep track of time played
ldh a, [hDisableJoypadPolling]
and a
call z, ReadJoypad
ld a, [wVBlankSavedROMBank]
ldh [hLoadedROMBank], a
ld [MBC1RomBank], a
pop hl
pop de
pop bc
pop af
reti
DelayFrame::
; Wait for the next vblank interrupt.
; As a bonus, this saves battery.
NOT_VBLANKED EQU 1
ld a, NOT_VBLANKED
ldh [hVBlankOccurred], a
.halt
halt
ldh a, [hVBlankOccurred]
and a
jr nz, .halt
ret
| 14.849057
| 50
| 0.732529
|
7c5a90c51b18c2db564cbb7683e9b8f635c5a5b9
| 3,062
|
asm
|
Assembly
|
snippets/asm_read/osm.asm
|
dejbug/protocasm
|
87bfc7ab9b555111d889b606da0d344a7c28eb9f
|
[
"MIT"
] | null | null | null |
snippets/asm_read/osm.asm
|
dejbug/protocasm
|
87bfc7ab9b555111d889b606da0d344a7c28eb9f
|
[
"MIT"
] | null | null | null |
snippets/asm_read/osm.asm
|
dejbug/protocasm
|
87bfc7ab9b555111d889b606da0d344a7c28eb9f
|
[
"MIT"
] | null | null | null |
; osm.asm - Yet another *.osm.pbf files parser.
; <https://github.com/dejbug>
; format PE GUI 4.0
format PE console 4.0
include 'win32a.inc'
include 'debug.inc'
ERROR_HANDLE_EOF = 38
LANG_NEUTRAL = 0x00
SUBLANG_DEFAULT = 0x01
LANGID = (SUBLANG_DEFAULT shl 10) + LANG_NEUTRAL
; no section defined - fasm will automatically create .flat section for both
; code and data, and set entry point at the beginning of this section
invoke GetStdHandle, STD_OUTPUT_HANDLE
cmp eax, INVALID_HANDLE_VALUE
je exit
mov [_hTerm], eax
invoke WriteConsole, [_hTerm], _filePath, 25, _bytesRead, 0
cmp eax, 0
je unk_error
invoke WriteConsole, [_hTerm], _endl, 2, _bytesRead, 0
; invoke con_out, _filePath, 25
dbg_out _szMsg1, _filePath
invoke CreateFile, _filePath, GENERIC_READ, FILE_SHARE_READ, 0, OPEN_EXISTING, FILE_FLAG_SEQUENTIAL_SCAN, 0
cmp eax, INVALID_HANDLE_VALUE
je fnf_error
mov [_hFile], eax
dbg_out _szMsg3, [_hFile], _filePath
invoke ReadFile, [_hFile], _buffer, 512, _bytesRead, 0
cmp eax, 0
je read_error
cmp [_bytesRead], 0
je eof_error
dbg_out _szMsg5, [_bytesRead]
dbg_out _filePath
jmp close_and_exit
unk_error:
call print_error
jmp exit
fnf_error:
dbg_out _szMsg6, _filePath
jmp exit
eof_error:
jmp close_and_exit
read_error:
dbg_out _szMsg4, _filePath
close_and_exit:
dbg_out _szMsg2, _filePath
invoke CloseHandle, [_hFile]
exit:
invoke ExitProcess, 0
proc print_error uses ebx
invoke GetLastError
mov [_lastErrorCode], 6
invoke FormatMessage, FORMAT_MESSAGE_ALLOCATE_BUFFER + FORMAT_MESSAGE_FROM_SYSTEM + FORMAT_MESSAGE_IGNORE_INSERTS, 0, [_lastErrorCode], LANGID, _msgBuf, 0, 0
mov ebx, [_msgBuf]
mov byte [ebx+eax-2], 0
invoke WriteConsole, [_hTerm], dword [_msgBuf], eax, _bytesRead, 0
dbg_out _msgErr1, [_lastErrorCode], [_lastErrorCode], 0
; dbg_out _msgErr1, 0,0,dword [_msgBuf]
; dbg_out _msgErr2, [_lastErrorCode], eax
invoke LocalFree, dword [_msgBuf]
ret
endp
_lastErrorCode dd 0
_msgBuf dd 0
_msgErr1 db '! error %08X (%d) "%s"', 0
_msgErr2 db '! error %08X (%d)', 0
_filePath db '..\..\data\Darmstadt.osm.pbf', 0
_szMsg1 db '* opening "%s"', 0
_szMsg2 db '* closing "%s"', 0
_szMsg3 db '* [HANDLE = %08x] : "%s"', 0
_szMsg4 db '! could not read from file "%s"', 0
_szMsg5 db '* %d bytes read from file', 0
_szMsg6 db '! could not open file "%s"', 0
_endl db 0xD, 0xA, 0
_hTerm dd INVALID_HANDLE_VALUE
_hFile dd INVALID_HANDLE_VALUE
_buffer rb 512
_bytesRead dd 0
; import data in the same section
data import
library \
kernel32, 'KERNEL32.DLL', \
msvcrtd, 'MSVCRTD.dll'
import kernel32, \
ExitProcess, 'ExitProcess', \
GetLastError, 'GetLastError', \
FormatMessage, 'FormatMessageA', \
GetStdHandle, 'GetStdHandle', \
WriteConsole, 'WriteConsoleA', \
CreateFile, 'CreateFileA', \
CloseHandle, 'CloseHandle', \
LocalFree, 'LocalFree', \
ReadFile, 'ReadFile'
import msvcrtd, \
_CrtDbgReport, '_CrtDbgReport'
end data
| 22.850746
| 159
| 0.704442
|
c868f7085182b3ff474ae6b46a88a05f382469f7
| 4,923
|
asm
|
Assembly
|
Transynther/x86/_processed/US/_st_4k_/i7-7700_9_0x48.log_21829_1526.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/US/_st_4k_/i7-7700_9_0x48.log_21829_1526.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/US/_st_4k_/i7-7700_9_0x48.log_21829_1526.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r8
push %r9
push %rax
push %rbx
push %rdi
push %rdx
lea addresses_WT_ht+0x1a973, %rax
clflush (%rax)
nop
nop
nop
nop
sub %r9, %r9
mov $0x6162636465666768, %r8
movq %r8, (%rax)
sub %rdx, %rdx
lea addresses_normal_ht+0x1ee33, %rdi
nop
nop
nop
nop
nop
and $32492, %r10
movl $0x61626364, (%rdi)
nop
nop
nop
nop
nop
inc %r8
lea addresses_normal_ht+0xf1f3, %rax
clflush (%rax)
nop
nop
nop
nop
cmp $28411, %rdi
movb $0x61, (%rax)
nop
nop
nop
nop
nop
xor %rbx, %rbx
pop %rdx
pop %rdi
pop %rbx
pop %rax
pop %r9
pop %r8
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r14
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
// Store
lea addresses_D+0x185f3, %rdi
nop
nop
nop
nop
nop
and %r13, %r13
mov $0x5152535455565758, %rsi
movq %rsi, %xmm2
movups %xmm2, (%rdi)
nop
nop
nop
nop
nop
sub %r14, %r14
// Faulty Load
lea addresses_US+0x55f3, %rbx
nop
and $46983, %rcx
mov (%rbx), %edi
lea oracles, %r13
and $0xff, %rdi
shlq $12, %rdi
mov (%r13,%rdi,1), %rdi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r14
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 11, 'size': 16, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': True, 'congruent': 7, 'size': 8, 'same': True, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 4, 'size': 4, 'same': True, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 9, 'size': 1, 'same': False, 'NT': False}}
{'58': 21829}
58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
| 42.076923
| 2,999
| 0.661182
|
d1125db8acc7c691e0d97050beb8b60f37ee73ff
| 553
|
asm
|
Assembly
|
oeis/016/A016953.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/016/A016953.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/016/A016953.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A016953: a(n) = (6*n + 3)^9.
; 19683,387420489,38443359375,794280046581,7625597484987,46411484401953,208728361158759,756680642578125,2334165173090451,6351461955384057,15633814156853823,35452087835576229,75084686279296875,150094635296999121,285544154243029527,520411082988487293,913517247483640899,1551328215978515625,2558036924386500591,4108400332687853397,6443858614676334363,9892530380752880769,14893745087865234375,22027845102081762861,32052064847671367667,45943373101939347033,64949246777441383839,90647430472564453125
mul $0,6
add $0,3
pow $0,9
| 79
| 493
| 0.889693
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.