Mov dl, moves the y value into dl to be plotted Mov dh, ah moves the iteration count into dh loop_x: loop to go through every x iteration Mov, bh moves the variable into the output Mov ah, moves dy_L into a temporary register after_negative_y: else statement destination Mov byte, -1 sets yi to -1 (negative slope) after_negative_y if not, jump to after the if negative_y jumps to the corresponding sub-label Mov byte, 1 puts 1 into yi (positive slope)Ĭmp byte, 0 checks if the slope is negative Line: function to draw a line at two points (bx, cx) Mov cx, 0x0001 clears the cx register and sets print times Mov bx, 0x00ff clears the bx register and sets color Point: function to draw a dot at a certain point (dx) Mov al, 0x03 text mode (80x25 16 colours) Jmp update jumps to the start of the loop Global _start tells the kernal where to begin the program I'm using NASM to convert the program to binary, and I run the binary in QEMU. I really don't know what could be going wrong because debugging in assembly is difficult. It should be drawing a line between 2 points, but when I test it, it draws points in random places in the window. After trying an implementation of this algorithm, the algorithm fails to work properly even though I almost exactly replicated the plotLineLow() function from this Wikipedia page. I'm trying to create a line-drawing algorithm in assembly (more specifically Bresenham's line algorithm).
#Early 2011 macbook pro windows 10 cdrom how to
#Early 2011 macbook pro windows 10 cdrom install
Can't complete a clean install of macOS High Sierra from USB.Bidirectional sharing between the MacBook Pro and Debian 8 not working.
Display text instead of pin on MKMapview.