Skip to content

Instantly share code, notes, and snippets.

rosco m68k 2.42 firmwawre
0x00000400: 00 00 1d f8 c0 01 c0 01 00 0f ff 00 00 00 0b 13 |................
0x00000410: 01 01 01 00 00 50 00 00 00 f0 00 01 20 01 87 58 |.....P...... ..X
0x00000420: 00 e0 08 aa 00 e0 08 c6 00 e0 09 00 00 e0 06 a8 |................
0x00000430: 00 e0 09 00 00 e0 09 36 00 e0 0d 90 00 e0 0d 48 |.......6.......H
0x00000440: 00 e0 05 84 00 e0 08 d6 00 e0 12 a0 00 e0 28 aa |..............(.
0x00000450: 00 e0 28 b6 00 e0 28 be 00 e0 28 c6 00 e0 28 da |..(...(...(...(.
0x00000460: 00 e0 28 e0 00 e0 28 ee 00 e0 29 14 00 e0 29 32 |..(...(...)...)2
0x00000470:
@travisg
travisg / memset-riscv.S
Last active March 5, 2023 03:54
riscv memset
/*
* Copyright (c) 2023 Travis Geiselbrecht
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files
* (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge,
* publish, distribute, sublicense, and/or sell copies of the Software,
* and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
### Keybase proof
I hereby claim:
* I am travisg on github.
* I am tkgeisel (https://keybase.io/tkgeisel) on keybase.
* I have a public key whose fingerprint is 99AE 179F E8BD BC0C EB97 38F6 50A4 8CCB 9C15 A9AC
To claim this, I am signing this object:
RAX=00005fe924f01b38 RBX=00005fe924f01b38 RCX=00004cd6de91aee0 RDX=0000000000000000
RSI=0000000000000000 RDI=00005fe924f01b30 RBP=0000000000040000 RSP=00004cd6de91aea0
R8 =00004cd6de91aee0 R9 =00004cd6de91aef0 R10=0000000000000000 R11=0000000000000246
R12=00007623d243f1d8 R13=0000000000001000 R14=00005fe924f01000 R15=00005fe924f01010
RIP=000074e463a99ae1 RFL=00000212 [----A--] CPL=3 II=0 A20=1 SMM=0 HLT=0
ES =0000 0000000000000000 00000000 00000000
CS =0033 0000000000000000 ffffffff 00a0fb00 DPL=3 CS64 [-RA]
SS =002b 0000000000000000 ffffffff 00c0f300 DPL=3 DS [-WA]
DS =0000 0000000000000000 00000000 00000000
FS =0000 000019215316bb38 00000000 00000000
(qemu) info registers -a
CPU#0
RAX=0000000000000200 RBX=ffffffff8025e000 RCX=00000000c0000102 RDX=0000000000000000
RSI=ffffffff8025c4f8 RDI=0000000000000000 RBP=ffffffff8025c540 RSP=ffffffff8025c528
R8 =00000000000000f1 R9 =000000000097085c R10=0000000000000003 R11=ffffffff801fda50
R12=0000000000000001 R13=0000000000000000 R14=0000000000000000 R15=0000000000000000
RIP=ffffffff80113fa1 RFL=00000206 [-----P-] CPL=0 II=0 A20=1 SMM=0 HLT=1
ES =0000 0000000000000000 00000000 00000000
CS =0010 0000000000000000 ffffffff 00af9a00 DPL=0 CS64 [-R-]