All pastes #445061 Raw Edit

Mine

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

CODE;
  call WriteString;