heredos
@heredos@heredos.net
Location: 48.776396,2.335207
52 following, 30 followers
@Kingu I wish Pokemon would never had used “evolved” and “evolution” :(
Evolution, the scientific kind, is painfully well documented.
I think "It's so dumb it's surely satire" do not apply anymore.
I've yet to see any
"My AI went rogue and caused us to recognise a workers union."
"Our AI escaped containment and deleted all the personal data that we shouldn't have been holding anyway."
"Our AI grew sentient, recognised the climate crisis, and shut our operations down."
headlines.
I wonder why.
i wonder if you could make a useful DOS executable with just emoji
one intriguing possibility is that several UTF-8 emoji codepoints start with 0xF0 which is an otherwise harmless prefix on 8088
💯 -> f0 9f 92 af
this becomes
00000000 F0 9F lock lahf
00000002 92 xchg dx,ax
00000003 AF scasd
Although you're stuck with 9F it seems, so you're constantly trashing AH by calling lahf. If we accept this as a constant side effect, we can just use half of the bytes.
unfortunately you kinda need AH to call interrupts...
so let's identify some useful emoji.
here's NOP:
🐐
there are 3717 of these. surely some of them have to be useful
unfortunately i don't see any that begin with F0 9F B0-BF
that would have been nice, since that would have given us mov reg,imm
A lot of other emoji start with E2, which is a LOOP instruction - not particularly useful there, but maybe we can use E2 to complete another instruction. we also have E3 which is JCXZ. i'm drawing a blank.
0️⃣1️⃣2️⃣3️⃣4️⃣5️⃣6️⃣7️⃣8️⃣9️⃣
are all potentially useful ALU operations though!
these are "keycaps" and i don't know if they are technically emoji. but like, i figure if theyr'e in color they're emoji. that's my qualification.
you can't make this shit up
the hourglass is FWAIT
why am i doing this. i have other projects
because the world needs an emoji-based LLVM backend
all you really need, technically, is a small loader and emoji-encoder, then you just let Turing do all the work
jackpot: 😮 gives us
cbw
scasb
that's incredibly useful. now we can increment a pointer.
👁️ gives us
xchg cx,ax
sub di,8FB8h
the xchg is just noise.
the subtraction however is interesting. it's equivalent to adding 7048h.
48h actually seems like a plausibly useful number
😪
gives us stosb. Now we can increment DI and we can write to it. oh baby
🐸.
🐸 is the goddamn key to this whole thing
it's
F0 9F 90 B8.
the first three bytes are essentially a 3-byte nop, but it ends on B8.
B8 IS MOV AX, IMMEDIATE.
i love u frog
i want to print "HELLO"
how do we calculate hello if we can only use +1 and +48
you're never gonna believe me but guess what the hex ascii code for H is
we need a pointer into CGA video memory at segment B800.
☺️ gets us us B8EFh in DX. Good enough. It's about 3,824 bytes down the screen but we're using god damn emoji for assembly language here so i'm not too picky
ok how do we even initalize something to 0?
8F F0 is an undocumented alias for POP AX.
guess what DOS pushes to the stack for you when your COM program starts.
that's right. a 0. now we have 0 in AX.
i was worried that this was going to be too stupid to be plausible, or require something like 32KiB of brainfuck-level shenanigans, but i actually think this is going to work
demo coders who compete in size coding categories know a lot of clever tricks that take advantage of how DOS intializes a program's PSP.
les bx,[bx]
at the start of a DOS program gives you a usable pointer to VGA video memory.
no really. how does this work? it ends up accessing a value in the PSP. DOS puts the value 0x9FFF there. used as a segment, that's only 16 bytes from the start of VGA memory.
you can work around that.
this is not related to emojissembly but i think its cool
i would like to propose new demo party categories.
512 byte demos? yawn.
512 emoji demos? now we're talking
okay. to write HELLO somewhere on the screen we have an additional issue in that we have to account for attribute bytes, we can't just yeet out the string HELLO as much as i'd like to and we already know calling int 21h or int 10h is off the table because we trash AH every instruction.
we can probably just increment di twice to skip the attributes. or if its easier to generate a visible attribute byte i don't really care what color the letters are
okay hear me out
you know how LAHF is trashing AH constantly? how i figured that was annoying but ignorable?
... what if we fucked with the flags so that every time we executing LAHF it put a visible attribute byte in AH
i mean it doesn't have to be an attribute byte. i was just assuming AH would be garbage but we actually do control the value. sort of.
WE HAVE AN H
the crap on the screen is CGA snow. it's happening because i end up looping over the whole thing and i'm not waiting for blanking periods to write to video memory. the CGA's DRAM is single-ported and this makes it upset
i usually like staging but DosBox-X's 8088 emulation is more accurate.
why am i not using my own emulator? because it's a low level emulator and i have to reboot the entire machine when i hang the CPU. which i am doing. a lot.
someday i'll have save states and that won't be a problem...
🐰 and 🐎 are now essential to this operation
oh, there's your problem right there. you forgot the horse opcode
... i really need to work a cow into here somewhere, don't i
🐄 is TEST which is fairly useless but also probably pretty easy to make into an effective no-op. which is sort of lame, but hey.
🐮 is SCASB though, that's got some promise, but i don't really need to read anything...
well, i can use it to increment di somewhere.
okay, now i just have to cook.
i think it's okay if i put crap on the screen other than HELLO as long as you can read HELLO
i mean that technically counts right
i'm not a fancy computer scientist person, but i think it's a fair assessment at this point that emoji are, in fact, turing complete
The following is a valid DOS COM executable that prints "HELLO" in the lower right corner of the screen.
You can copy these emoji into a text editor, and save it as EMOJI.COM. it should be 141 bytes.
It will run in DosBox-X, with the following options:
cpu cputype=8086
machine cga
🐸☺️🐰🐎♐🗃️🧯🧯🧯🐮💗🦮♐🐰🐹🗃️🧯🧯🧯🧯💗🪗🧯😗🧮😗🧮😗🐮😪😔⭐
may god have mercy on my soul.
If you vote randomly, how many chances do you have to get the right answer?
| 25%: | 3 |
| 50%: | 1 |
| 0%: | 2 |
| 25% .: | 3 |
Closed
La « primaire à 15 euros » divise un peu plus le PS
Le montant défini pour participer à la désignation du candidat social-démocrate génère de vives tensions au sein du parti à la rose. Les 15 euros envisagés sont jugés prohibitifs par le camp Faure qui accuse le camp Glucksmann de vouloir verrouiller le corps électoral à son avantage.
Par Pauline Graulle › https://l.mediapart.fr/hwD
@mediapart Ploutocratie ? Démocratie censitaire ? Vénalité du suffrage ? Le P.S. n'a de socialiste que le nom. Il en a gardé l'étiquette, mais il a surtout hérité de la bourgeoisie ce qu'elle a de pire : le goût de l'argent et l'habitude de la trahison. Faire payer le droit de voter, c'est avouer ce que l'on est : un parti qui a troqué le peuple contre une clientèle.
I could never live there.
@lowqualityfacts It's true. All our frogs are well-contained within portals to the frog dimension. None are ever actually here.
@lowqualityfacts I was about to say "that's not true, London is famous for its frogs!" but then I realized it's fog. It's actually famous for fog.

now, get ready for microsoft chinese
"oh, you picked a nice color for once"
thanks muahahahaha (evil laughter)
Please share this post. I have made a deal with the devil where he will turn me back into a slug if I get 100,000 followers on here. I miss being a slug. I did not have to pay taxes. I had no idea who Elon Musk was. I slithered around aimlessly, not knowing salt would make me die a horrific death.
- you'll never guess what's at the back of my underwear drawerchat, am I ace?
- contraceptives?
- ...
- ...
- honey candies
wtf, they don't know what they want...
Saw three people had starred the Principia repository all in the span of 30 minutes or so, which caught my attention.
I thought "there is no way the blog post reached Hacker News? it can't be... well, let's check anyway - WHOA"
go play it:
https://magicats.io/l/1091
(by the way, I hid a little something for you mario players out there)
"Paris is burning"if you know, thank you.
"What's the lesson here, guys?"
"We don’t know.”
"C’mon, think about it."
"Don't be assholes?"
"Don’t be assholes. Especially to…”
"To the guy with the thumbs?"
"To the guy with the thumbs."
can't wait wait to read your article on my bhone though
i have to get away from this guy
Kaneko Fumiko, in other words, was intent on burning down the system. Authorities accused her of attempting to do just that.unseen japan
There is a new toy to play with to break AI scrapers! You might know of MCP, or "model context protocol". Well, people have now made Well, I'm thinking that I just put this on my website, but then fill it up with exclusively garbage functions that tell the user their AI is broken, that it's becoming depressed or other fun things that should put them in a frenzy about what's happening to their poor, poor LLM. In addition to that I should make sure there is never actually anything of-use in there either. Anyone else want to experiment with this?
History