All pastes #444958 Raw Edit

Mine

public text v1 · immutable
·published 2007-04-17 16:48 UTC
rendered paste body
DATA;
//port0 - consoleX
//port1 - consoleY
//port2 - Char
//port3 - charparm 
alloc x,0;
alloc y,0;
WriteString: //ESI - String pointer, EDX - Param
  mov eax,65536;
  AWriteLoop:
    cmp #eax,0; //Terminate on char 0
    je AEnd;
	mov port0,#x;
	mov port1,#y;
    mov port2,#eax;
	mov port3,#edx;
    inc eax;
	inc #x;
  jmp AWriteLoop;
  AEnd:
  ret //Return from call

CODE;
  mov edx,000999; //White foreground on black background
  call WriteString;