chiark / gitweb /
extern/global used as for gpasm from gputils 0.13.3-1.0iwj1
authorian <ian>
Wed, 12 Oct 2005 23:51:45 +0000 (23:51 +0000)
committerian <ian>
Wed, 12 Oct 2005 23:51:45 +0000 (23:51 +0000)
iwjpictest/test.inc
iwjpictest/test1.asm
iwjpictest/test2.asm

index 790af16166f339809303db97dc9dfd2dc8229128..d0a6b9e11d22de8f89a48e13277041a14cfd3c02 100644 (file)
@@ -2,5 +2,4 @@
 
  include /usr/share/gputils/header/p18f458.inc
 
-;      extern          somewhere
-;      extern          nothing_much
+               extern          nothing_much
index 997974daff2e2f104a83aeae6d2757babb579b92..41ab645e82809f70ef68d448acf661c6b6e92944 100644 (file)
@@ -1,8 +1,7 @@
 ; test for globals and res and stuff
 
- extern nothing_much
- global fixed
- global somewhere
+               global fixed
+               global somewhere
 
                include         test.inc
 
index 46b799b7e614134f7fdf5bfc68bd46db6c0a3eaf..d0f1282f88777524aa24f1314fc459b6d92ec7e9 100644 (file)
@@ -1,17 +1,16 @@
 ; test for globals and res and stuff
 
+               extern somewhere
+               extern fixed
+
                include         test.inc
 
                code
 
 nothing_much
-               incf            somewhere, 1
+               incf            somewhere, F
                lfsr            0, fixed
-               decf            POSTINC0
+               decf            POSTINC0, F
                return
 
- global nothing_much
- extern somewhere
- extern fixed
-
                end