--- Log opened Sun Mar 04 00:00:30 2018 |
00:08 | | Kindamoody|afk is now known as Kindamoody |
00:19 | | Vash [Vash@Nightstar-1l3nul.res.rr.com] has joined #code |
01:06 | | Derakon[AFK] is now known as Derakon |
01:34 | | Kindamoody is now known as Kindamoody[zZz] |
02:41 | | Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has quit [[NS] Quit: http://www.kiwiirc.com/ - A hand crafted IRC client] |
02:42 | | Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has joined #code |
02:42 | | mode/#code [+o Reiv] by ChanServ |
03:12 | | Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has quit [[NS] Quit: http://www.kiwiirc.com/ - A hand crafted IRC client] |
03:13 | | Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has joined #code |
03:13 | | mode/#code [+o Reiv] by ChanServ |
03:39 | | Degi [Degi@Nightstar-i3ch00.dyn.telefonica.de] has quit [Connection closed] |
03:42 | | Jessikat [Jessikat@Nightstar-pocnfc.dab.02.net] has joined #code |
03:45 | | Jessikat` [Jessikat@Nightstar-8tl.bmi.132.82.IP] has quit [Ping timeout: 121 seconds] |
03:55 | | * McMartin replaces various chunks of his retrocoding build flow with individual Unix commands. |
03:55 | <&McMartin> | od and objcopy are both gloriously abusable |
04:00 | <&McMartin> | I guess I should run this past this channel |
04:00 | <&McMartin> | I'm turning a binary file into assembly source as a dump, because this assembler doesn't have INCBIN but it does have HEX |
04:00 | <&McMartin> | I got this out: |
04:00 | <&McMartin> | od -An -t x1 -v | sed 's/^/ HEX /' |
04:00 | <&McMartin> | Is there a better way to stick a string in front of every line? |
04:02 | <&[R]> | What does od do? |
04:02 | <&McMartin> | A hell of a lot of things. |
04:02 | <&McMartin> | It's a very configurable binary-to-text converter |
04:02 | <&McMartin> | "object dump" |
04:03 | <&[R]> | Ah interesting |
04:03 | <&McMartin> | It's part of coreutils. |
04:04 | <&[R]> | <McMartin> Is there a better way to stick a string in front of every line? <-- maybe using paste, but sed is my goto for prefixing every line TBH |
04:04 | <&McMartin> | -An is "don't dump addresses", -t x1 is "output hex a byte at a time", and -v is "don't summarize repeated lines the way hexdump does" |
04:05 | <&[R]> | Nice, and it doesn't reorder shit like hexdump does |
04:05 | <&McMartin> | It can if you ask it to! |
04:05 | <&McMartin> | -t has a whole bunch of optiosn >_> |
04:05 | <&McMartin> | (In fact, if you want, you can have it interpret everything as 32-bit little-endian floats) |
04:06 | <&[R]> | Nah, hexdump's inability to /not/ reorder things cost me a few hours of confusion |
04:06 | <&[R]> | I just use xxd now |
04:08 | <&[R]> | $ printf "1\t2\t3 4\t\n" | while read line; do printf "PREFIX %s\n" "$line"; done # Pure bash way to prefix lines |
04:10 | <&[R]> | Anyways, what are you doing with objcopy that's so interesting? |
04:11 | <&McMartin> | Oh, it just happens to support some formats that you don't see much in the normal course of personal computing. |
04:11 | <&McMartin> | (In particular, the assembler I'm using prefers to output Motorola S-Records) |
04:11 | <&[R]> | So you're using it to translate? |
04:11 | <&McMartin> | That is what it is for |
04:11 | <&[R]> | Coolio |
04:12 | <&McMartin> | Normally you use it for stuff like turning binary blobs into linkable ELF objects. |
04:13 | <&McMartin> | I however have mostly used it to turn ELF executables into raw memory dumps, because that is what my emulators or somewhat-more-obscure operating systems demand. |
04:13 | <&McMartin> | Shoutouts to RISC OS file type &FF8 |
04:14 | <&McMartin> | (Here is my previous deployment of objcopy: https://bumbershootsoft.wordpress.com/2017/06/29/project-mehitabel-assembly-language-elf-and-the-binutils/ ) |
04:16 | <&[R]> | Interesting, little bit beyond me TBH |
04:17 | <&McMartin> | TL;DR: "Hello World in 24 bytes final executable size" |
04:56 | | Vash [Vash@Nightstar-1l3nul.res.rr.com] has quit [[NS] Quit: Quit] |
05:10 | | Vornlicious [Vorn@Nightstar-3o301e.sub-174-210-3.myvzw.com] has joined #code |
05:13 | | Vorntastic [Vorn@Nightstar-1l3nul.res.rr.com] has quit [Ping timeout: 121 seconds] |
05:26 | <&McMartin> | So yeah, here we go. https://bumbershootsoft.wordpress.com/2018/03/04/an-improvised-sega-genesis-toolchain/ |
05:31 | <@celticminstrel> | ...what's this about hexdump reordering things... |
05:34 | <&McMartin> | When it's dumping at a size greater than bytes - like its default, which is 16-bit units - it dumps them littlendian |
05:34 | <@celticminstrel> | Ahhh. |
05:34 | <&McMartin> | So each pair is flipped. |
05:36 | | Derakon is now known as Derakon[AFK] |
05:52 | <@celticminstrel> | BTW I think you're missing a parenthesis here: "The real intent was to blit from the Genesis’s main 64KB of RAM (at $ff0000 into VRAM for stuff like high-speed dynamic map updates." |
06:38 | | celticminstrel is now known as celmin|sleep |
10:12 | | Jessikat` [Jessikat@Nightstar-u9qaj9.dab.02.net] has joined #code |
10:13 | | Jessikat [Jessikat@Nightstar-pocnfc.dab.02.net] has quit [Ping timeout: 121 seconds] |
10:52 | | Degi [Degi@Nightstar-i3ch00.dyn.telefonica.de] has joined #code |
11:40 | | Kindamoody[zZz] is now known as Kindamoody |
12:01 | <@gnolam> | https://twitter.com/racoconn/status/967388102191755264 |
12:36 | | M-E [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has joined #code |
12:38 | | gnolam [lenin@Nightstar-ego6cb.cust.bahnhof.se] has quit [[NS] Quit: Reboot] |
12:40 | | gnolam [lenin@Nightstar-ego6cb.cust.bahnhof.se] has joined #code |
12:40 | | mode/#code [+o gnolam] by ChanServ |
13:14 | | Kindamoody is now known as Kindamoody|afk |
15:59 | | Vornicus [Vorn@Nightstar-1l3nul.res.rr.com] has quit [Ping timeout: 121 seconds] |
16:06 | | celmin|sleep is now known as celticminstrel |
16:14 | | Jessikat` is now known as Jessikat |
16:32 | | Jessikat [Jessikat@Nightstar-u9qaj9.dab.02.net] has quit [Ping timeout: 121 seconds] |
16:33 | | Jessikat [Jessikat@Nightstar-n7ednq.dab.02.net] has joined #code |
17:43 | | Vornicus [Vorn@Nightstar-1l3nul.res.rr.com] has joined #code |
17:43 | | mode/#code [+qo Vornicus Vornicus] by ChanServ |
18:54 | | Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has quit [[NS] Quit: http://www.kiwiirc.com/ - A hand crafted IRC client] |
18:56 | | Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has joined #code |
18:56 | | mode/#code [+o Reiv] by ChanServ |
19:10 | | mac is now known as macdjord|slep |
20:03 | | Jessikat [Jessikat@Nightstar-n7ednq.dab.02.net] has quit [[NS] Quit: Bye] |
20:10 | | Derakon[AFK] is now known as Derakon |
20:38 | | Kindamoody|afk is now known as Kindamoody |
21:56 | | Pinkhair [user1@Nightstar-g7hdo5.dyn.optonline.net] has joined #code |
21:58 | | Pink [user1@Nightstar-g7hdo5.dyn.optonline.net] has quit [Ping timeout: 121 seconds] |
23:01 | | himi [sjjf@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds] |
23:14 | | M-E [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has quit [Connection closed] |
--- Log closed Mon Mar 05 00:00:32 2018 |