public String getDemoText()

in nasm/src/main/java/com/nasmlanguage/NASMColorSettingsPage.java [71:129]


    public String getDemoText() {
        return "; Sample NASM File\n" +
                "section .text\n" +
                "\n" +
                "example_constant equ 45\n" +
                "%macro multi_line_macro 1\n" +
                "    mov    %1, ebx\n" +
                "%endmacro\n" +
                "%macro retz 0 \n" +
                "        jnz %%skip \n" +
                "        ret \n" +
                "    %%skip: \n" +
                "%endmacro\n" +
                "%define single_line_macro(x)   (x+5)\n" +
                "\n" +
                "global func\n" +
                "func:\n" +
                "       multi_line_macro eax\n" +
                "       mov     eax, single_line_macro(5)\n" +
                "       xor     ax, ax\n" +
                "       mov     ss, ax ; Set segments\n" +
                "       mov     ds, ax\n" +
                "       mov     es, ax\n" +
                "       fadd    S(0) ; FPU instruction\n" +
                "       pxor    xmm0, xmm0 ; MMX instruction\n" +
                "       cvtsi2ss xmm0, rax\n" +
                "       mov     eax, dword [ebp + 4*eax - 12h]\n" +
                "       mov     eax, 'str'\n" +
                "       mov     eax, partition.sizeof\n" +
                "       repz ret\n" +
                "\n" +
                "section .data\n" +
                "\n" +
                "; Format of fdisk partition entry.\n" +
                "struc partition\n" +
                "    .bootid  resb 1 ; bootable or not\n" +
                "    .head    resb 1 ; starting head, sector, cylinder\n" +
                "    .sect    resb 1 ;\n" +
                "    .cyl     resb 1 ;\n" +
                "    .type    resb 1 ; partition type\n" +
                "    .endhead resb 1 ; ending head, sector, cylinder\n" +
                "    .endsect resb 1 ;\n" +
                "    .endcyl  resb 1 ;\n" +
                "    .lba     resd 1 ; starting lba\n" +
                "    .sectors resd 1 ; size in sectors\n" +
                "    .sizeof\n" +
                "endstruc\n" +
                "%macro silly 2\n" +
                "    %2: db %1\n" +
                "%endmacro\n" +
                "silly \"example string 1\" exampleString1\n" +
                "exampleString2:db \"example string 2\"\n" +
                "floatval:      dd 3.14159\n" +
                "byteval1:      db 0xFF\n" +
                "byteval2:      db 0A1h\n" +
                "binaryval1:    db 0b0101\n" +
                "\n" +
                "       END\n";
    }