flat assembler, the next generation

Diff
Login

Differences From Artifact [35181c9067]:

To Artifact [98fd580f97]:


842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
	end resource_directory

end macro

macro PE.fixups
	namespace PE
		Fixups:
		PAGE_RVA = 0
		BLOCK_HEADER = 0
		BLOCK_SIZE = 0
		repeat NUMBER_OF_RELOCATIONS
			load ADDRESS:dword from relocated_addresses:(%-1) shl 2
			if ADDRESS and not 0FFFh <> PAGE_RVA
				if BLOCK_HEADER
					if BLOCK_SIZE and 11b
						dw 0
						BLOCK_SIZE = BLOCK_SIZE + 2
					end if
					store BLOCK_SIZE:dword at BLOCK_HEADER+4
				end if







<




|







842
843
844
845
846
847
848

849
850
851
852
853
854
855
856
857
858
859
860
	end resource_directory

end macro

macro PE.fixups
	namespace PE
		Fixups:

		BLOCK_HEADER = 0
		BLOCK_SIZE = 0
		repeat NUMBER_OF_RELOCATIONS
			load ADDRESS:dword from relocated_addresses:(%-1) shl 2
			if ~ defined PAGE_RVA | ADDRESS and not 0FFFh <> PAGE_RVA
				if BLOCK_HEADER
					if BLOCK_SIZE and 11b
						dw 0
						BLOCK_SIZE = BLOCK_SIZE + 2
					end if
					store BLOCK_SIZE:dword at BLOCK_HEADER+4
				end if