2023-02-01から1ヶ月間の記事一覧

文字列表示アセンブリ言語プログラムの各バイト

bits 16org 0x100 mov ah,9mov dx,msgint 21h mov ah,4Chmov al,0int 21h msg db "Hello.$" この「アセンブラー ソース」をアセンブルしたやつの各バイトがこれ。

某フリー画像をアプリにすると?

このフリー画像を「BINファイル」にして逆アセンブルしたやつの一部がこれ(全部だとすごく長いから)。 000770C0 0821 or [bx+di],ah000770C2 8410 test [bx+si],dl000770C4 42 inc dx000770C5 0821 or [bx+di],ah000770C7 8410 test [bx+si],dl000770C9 42 i…

素数判定プログラムのアセンブリ言語コード

bits 16org 100h mov ah,0ahmov dx,bufmov byte [buf],20hint 21h mov dx,crlfmov ah,09hint 21h mov dl,[buf+1]cmp dl,1hje one_digitcmp dl,2hje two_digits jmp exit one_digit:mov dl,[buf+2]sub dl,30hjmp prime_judge two_digits:mov ax,[buf+2]sub ax…

擬似命令dbにより文字列のデータが存在するアセンブリ言語プログラムを逆アセンブルすると?

bits 16org 0x100 mov ah,9mov dx,msgint 21h mov ah,4Chmov al,0int 21h msg db "Hello.$" これをアセンブルしたやつを逆アセンブルすると、 00000000 B409 mov ah,0x900000002 BA0D01 mov dx,0x10d00000005 CD21 int 0x2100000007 B44C mov ah,0x4c0000000…

奇妙なアセンブル

Hello.I'm fine, thank you.And you? というテキストをBINファイルにして逆アセンブルすると、 dec axgs insbinsboutswcs or ax,0x490adaainswand [bp+0x69],ahoutsbgs sub al,0x20jz 0x7cpopaoutsbimul sp,[bx+si],byte +0x79outswjnz 0x4aor ax,0x410aouts…