buffer:Array [0..2559] of Byte =
(
$B4,$09,$CD,$00,$03,$00,$00,$00,$04,$00,$00,$00,$FF,$FF,$00,$00,
$B8,$00,$00,$00,$00,$00,$00,$00,$40,$00,$00,$00,$00,$00,$00,$00,
$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,
$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$B8,$00,$00,$00,
$0E,$1F,$BA,$0E,$00,$B4,$09,$CD,$21,$B8,$01,$4C,$CD,$21,$54,$68,
........);
以上是一个delphi里的数组,共有2559个元素,,每个元素里装着一个16进制数,
我是想把一文件变成一个16进制数组放在代码里,需要的时候再writefile出来.
这么长的数组不知道在汇编里应该如何表示?
我这样做,可是不行..
buffer db 0B4H,009H,0CDH,000H,003H,000H,000H,000H,004H,000H,000H,000H,
000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,
............ ;
这里buffer如果超过48个元素就会出错,,该如何解决?
.code
start
invoke CreateFile,ctxt("c:\1.txt"),GENERIC_READ or GENERIC_WRITE,FILE_SHARE_READ,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_NORMAL,NULL
mov hfile,eax
invoke WriteFile,hfile,addr buffer ,sizeof buffer ,ebx,NULL
invoke CloseHandle,hfile
.....
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课