Switch to full style
PIC Assembly Articles
Post a reply

subtract number from memory locations

Sat May 11, 2013 10:10 pm

Subtract a number from a specific location at the memory.
Code:

           
#include <p18F8720.inc>
           org 0x00
           goto start
           org 0x08
           retfie
           org 0x18
           retfie
           start movlw 0x05 
; WREG <- 0x05
           subwf 0x10
,F,; 0x10 <-[0x10] – 0x05
           subwf 0x11
,F,; 0x11 <-[0x11] – 0x05
           subwf 0x12
,F,; 0x12 <-[0x12] – 0x05
           subwf 0x13
,F,; 0x13 <-[0x13] – 0x05
           end




Post a reply
  Related Posts  to : subtract number from memory locations
 show the locations of clicks on the image     -  
 convert integer number to octal,hexadecimal number systems     -  
 convert octal number to decimal number     -  
 convert decimal number to octal number     -  
 Memory leak detection in C++     -  
 problem with memory alocation     -  
 GDI memory leaks detection     -  
 C++ & Java memory management!!     -  
 MATLAB clear memory     -  
 Latest XML parsing/memory usage benchmark     -