GNOME Bugzilla – Bug 649311
Please, add support for highlight asm syntax (MASM, NASM, FASM)
Last modified: 2013-11-15 18:35:46 UTC
Please, add support for highlighting of most common assemblers: these are MASM, NASM and FASM Also, it will be great if it can support output of nasm disasm: here is example: 0000605C 60 pushaw 0000605D B979A0 mov cx,0xa079 00006060 E8BD96 call word 0xf720 00006063 24FE and al,0xfe 00006065 E8DE96 call word 0xf746 00006068 BA6F0C mov dx,0xc6f 0000606B EC in al,dx 0000606C E6EB out 0xeb,al 0000606E E6EB out 0xeb,al 00006070 24BF and al,0xbf 00006072 EE out dx,al 00006073 E6EB out 0xeb,al 00006075 E6EB out 0xeb,al 00006077 B305 mov bl,0x5 00006079 E83E00 call word 0x60ba 0000607C 61 popaw 0000607D CB retf and output of IDA Pro disasm: seg000:1B04 seg000:1B05 seg000:1B05 ; =============== S U B R O U T I N E ======================================= seg000:1B05 seg000:1B05 ; Attributes: bp-based frame seg000:1B05 seg000:1B05 ; int __cdecl write_word_in_pci(int bus_number, int device_number, int function_number, int, int port) seg000:1B05 write_word_in_pci proc near ; CODE XREF: sub_115EE+5Fp seg000:1B05 ; sub_115EE+76p seg000:1B05 seg000:1B05 data = word ptr -8 seg000:1B05 register = word ptr -6 seg000:1B05 pci_device = dword ptr -4 seg000:1B05 bus_number = word ptr 4 seg000:1B05 device_number = word ptr 6 seg000:1B05 function_number = word ptr 8 seg000:1B05 arg_6 = word ptr 0Ah seg000:1B05 port = word ptr 0Ch seg000:1B05 seg000:1B05 push bp seg000:1B06 mov bp, sp seg000:1B08 sub sp, 8 ; Integer Subtraction seg000:1B0B mov dx, [bp+arg_6] seg000:1B0E mov ax, dx seg000:1B10 and ax, 3 ; Logical AND seg000:1B13 mov [bp+data], ax seg000:1B16 mov ax, dx seg000:1B18 and ax, 0FFFCh ; Logical AND seg000:1B1B mov [bp+register], ax seg000:1B1E mov [bp+pci_device], 80000000h seg000:1B26 movsx eax, [bp+bus_number] ; Move with Sign-Extend seg000:1B2B and eax, 0FFh ; Logical AND seg000:1B31 shl eax, 10h ; Shift Logical Left seg000:1B35 or [bp+pci_device], eax ; Logical Inclusive OR seg000:1B39 movsx eax, [bp+device_number] ; Move with Sign-Extend seg000:1B3E and eax, 1Fh ; Logical AND seg000:1B42 shl eax, 0Bh ; Shift Logical Left seg000:1B46 or [bp+pci_device], eax ; Logical Inclusive OR seg000:1B4A movsx eax, [bp+function_number] ; Move with Sign-Extend seg000:1B4F and eax, 7 ; Logical AND seg000:1B53 shl eax, 8 ; Shift Logical Left seg000:1B57 or [bp+pci_device], eax ; Logical Inclusive OR seg000:1B5B movsx eax, [bp+register] ; Move with Sign-Extend seg000:1B60 and eax, 0FFh ; Logical AND seg000:1B66 or [bp+pci_device], eax ; Logical Inclusive OR seg000:1B6A push large [bp+pci_device] ; value seg000:1B6E push 0CF8h ; port seg000:1B71 call write_dword_in_port ; Call Procedure seg000:1B71 seg000:1B74 add sp, 6 ; Add seg000:1B77 push [bp+port] ; port seg000:1B7A mov ax, [bp+data] seg000:1B7D add ax, 0CFCh ; Add seg000:1B80 push ax ; value seg000:1B81 call write_word_in_port ; Call Procedure seg000:1B81 seg000:1B84 add sp, 4 ; Add seg000:1B87 leave ; High Level Procedure Exit seg000:1B88 retn ; Return Near from Procedure seg000:1B88 seg000:1B88 write_word_in_pci endp seg000:1B88 seg000:1B89
*** This bug has been marked as a duplicate of bug 152267 ***