search for: print_num

Displaying 2 results from an estimated 2 matches for "print_num".

Did you mean: hint_num
2007 Apr 18
1
[RFC/PATCH LGUEST X86_64 03/13] lguest64 core
...+ PRINT_OUT($'0' + $n) + +#define PRINT_HEX(n) \ + mov n, %cl; \ + and $0xf, %cl; \ + cmp $0xa, %cl; \ + jge 11f; \ + add $'0', %cl; \ + jmp 12f; \ +11: add $('a' - 10), %cl; \ +12: PRINT_OUT(%cl); + +#define PRINT_NUM_BX \ +9: PRINT_HEX(%bl); \ + shr $4, %rbx; \ + jne 9b + +#define PRINT_NUM(n) \ + movl $n, %ebx; \ + PRINT_NUM_BX; \ + PRINT_L('\n'); \ + PRINT_L('\r') + +#define PRINT_LONG(n) \ + movl n, %ebx; \ + PRINT_NUM_BX; \ + PRINT_L('\n');...
2007 Apr 18
1
[RFC/PATCH LGUEST X86_64 03/13] lguest64 core
...+ PRINT_OUT($'0' + $n) + +#define PRINT_HEX(n) \ + mov n, %cl; \ + and $0xf, %cl; \ + cmp $0xa, %cl; \ + jge 11f; \ + add $'0', %cl; \ + jmp 12f; \ +11: add $('a' - 10), %cl; \ +12: PRINT_OUT(%cl); + +#define PRINT_NUM_BX \ +9: PRINT_HEX(%bl); \ + shr $4, %rbx; \ + jne 9b + +#define PRINT_NUM(n) \ + movl $n, %ebx; \ + PRINT_NUM_BX; \ + PRINT_L('\n'); \ + PRINT_L('\r') + +#define PRINT_LONG(n) \ + movl n, %ebx; \ + PRINT_NUM_BX; \ + PRINT_L('\n');...