All pastes #1721454 Raw Edit

Someone

public text v1 · immutable
#1721454 ·published 2009-12-20 17:26 UTC
rendered paste body
macro msb_dw x { dw ((x and 0FF00h) shr 8) or ((x and 0FFh) shl 8) }

macro lb_dw x {  
	dw x 
	msb_dw x } 

macro msb_dd x { 
  dd ((x and 0FF000000h) shr 24) or ((x and 0FF0000h) shr 8) or \ 
  ((x and 0FF00h) shl 8) or ((x and 0FFh) shl 24) } 

macro lb_dd x { 
  dd x 
  msb_dd x }
  
macro binary_date year, month, day, hour, minute, second, offset { 
  db year-1900, month, day, hour, minute, second, offset } 

macro text_date year, month, day, hour, minute, second, hundredth, offset { 
  db year, month, day, hour, minute, second, hundredth, offset }

iso9660:

times 2048*16 db 0

Primary_Volume_Descriptor:
	.Volume_Descriptor_Type: db 1											; описатель раздела	 - 1 главный раздел
	.Standart_Identifier: db "CD001"										; стандартный идентификатор
	.Volume_Descriptor_Version: db 1										; 
	db 0
	.System_Identifier: 
		times 32-($-.System_Identifier) db " "
	.Volume_Identifier: db "TestDisk"
		times 32-($-.Volume_Identifier) db " "
	times 8 db 0
	.Volume_Space_Size: lb_dd ((end9660 - iso9660)/2048)
	times 32 db 0
	.Volume_Set_Size: lb_dw 1
	.Volume_Sequence_Number: lb_dw 1
	.Logical_Block_Size: lb_dw 2048
	.Path_Table_Size: lb_dd 19
	.Type_L_Path_Table: lb_dd 19
	.Optional_Type_L_Path_Table: lb_dd 0
	.Type_M_Path_Table: msb_dd 0 
	.Optional_Type_M_Path_Table: msb_dd 0
	
	.Root_Directory_Record:
		.size: db 34
		.extended_attribute: db 0
		.location: lb_dd 0
		.data_length: lb_dd 2048
		binary_date 2010, 10, 11, 12, 0, 0, 3
		.file_flags: db 1
		.file_unit_size: db 0
		.interleave_gap_size: db 0 
		.volume_sequence_number: lb_dw 0 
		.length_of_file_identifier: db 1 
		.file_identifier: db 0
		times 34-($-.Root_Directory_Record) db 0
		
	
	.Volume_Set_Identifier: 
    times 128-($-.Volume_Set_Identifier) db " " 
  .Publisher_Identifier: 
    times 128-($-.Publisher_Identifier) db " " 
  .Data_Preparer_Identifier: 
    times 128-($-.Data_Preparer_Identifier) db " " 
  .Application_Identifier: 
    times 128-($-.Application_Identifier) db " " 
  .Copyright_File_Identifier: 
    times 37-($-.Copyright_File_Identifier) db " " 
  .Abstract_File_Identifier: 
    times 37-($-.Abstract_File_Identifier) db " " 
  .Bibliographic_File_Identifier: 
    times 37-($-.Bibliographic_File_Identifier) db " " 
  Primary_Volume_Creation_Date_and_Time: 
    text_date "2010", "10", "01", "12", "00", "00", "00", 3 
  Primary_Volume_Modification_Date_and_Time: 
    text_date "2010", "10", "01", "12", "00", "00", "00", 3 
  .Volume_Expiration_Date_and_Time: 
    times 17 db 0 
  .Volume_Effective_Date_and_Time: 
    times 17 db 0 
  .File_Structure_Version: db 1 
  
times 2048-($-Primary_Volume_Descriptor) db 0	
	



Terminator_Volume_Descriptor:
	.Volume_Descriptor_Type: db 0FFh
	.Standart_Identifier_Type: db "CD001"
	.Volume_Descriptor_Version: db 1
times 2048-($-Terminator_Volume_Descriptor) db 0

end9660:

times 2048* 16 db 0