The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
USR function (*solved*)
#3
Testing the results of the USR function seems to come up with the right answers, but my "invert a graphic" sub seems to be breaking in strange ways.

Can't quite follow why:

Is it me doing something silly, or the compiler? It seems to miss a line off the top, and then write gibberish into the next one, before carrying on normally with the last six lines. Is it my emulator (spin)? or my program?

I just checked: Does the same thing in Spectaculator.
And "Print \b" seems to print a B missing the top before my sub even runs...

Code:
SUB fastcall hMirror (udg as uInteger) ASM ld b,8 hMirrorRotate: LD C,(HL) RR C RLA RR C RLA RR C RLA RR C RLA RR C RLA RR C RLA RR C RLA RR C RLA LD (HL),A INC HL DJNZ hMirrorRotate END ASM END SUB CLS PRINT "Address: ";USR "B" PRINT "\b" hMirror (USR"B") PRINT "\b"
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)