No need for that anymore
authorjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 21 Oct 2001 12:11:41 +0000 (12:11 +0000)
committerjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 21 Oct 2001 12:11:41 +0000 (12:11 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1422 4a8a32a2-be11-0410-ad9d-d568d2c75423

device/examples/ds390/ow390/owfile.c
device/examples/ds390/ow390/owtrnu.c
device/examples/ds390/ow390/tstow.c

index f192db572eb9a0188bfdea20e79f07d0dffde337..9dd502312735ec48a52ef4f47969bccba295a5bd 100644 (file)
@@ -128,7 +128,6 @@ int owReadFile(int portnum, uchar *filename, uchar *buf)
          buf[bufcnt++] = pgbuf[i];
 
       // get the next file page (from page pointer) 
-      _asm ;johan _endasm;
       filepg = pgbuf[pglen-1];
    }
    while (filepg);
index abd2e8418813f5caa77c4cc2e6be5a2da7d9f80b..441df0e5937ba6c5ccb59431c0beaff81c3821f6 100755 (executable)
@@ -467,7 +467,6 @@ int Write_Scratchpad(int portnum, uchar *write_buf, int start_page, int write_le
    sendpacket[sendlen++] = 0x0F;     
    // write the target address
    sendpacket[sendlen++] = ((start_page << 5) & 0xFF);    
-   _asm ;johan 1 _endasm;
    sendpacket[sendlen++] = (start_page >> 3);
 
    // write packet bytes 
@@ -553,7 +552,6 @@ int Copy_Scratchpad(int portnum, int start_page, int write_len)
    sendpacket[sendlen++] = 0x55;     
    // write the target address
    sendpacket[sendlen++] = ((start_page << 5) & 0xFF);    
-   _asm ;johan 2 _endasm;
    sendpacket[sendlen++] = (start_page >> 3);
    sendpacket[sendlen++] = write_len - 1;
    // read copy result
index 01c561f71596d49668faaefb7ad094ad57ea1097..2a2d585bc709edf144570f67c5fa9c4f4b01b97d 100755 (executable)
@@ -192,7 +192,6 @@ int main() //short argc, char **argv)
    // clear the buffer
    for (i = 0; i < 2000; i++)
       tran_buffer[i] = 0x55;
-   _asm ;johan _endasm;
    printf("Read file DEMO.000 %d\n",owReadFile(portnum,filename,tran_buffer));
    // print the data result
    for (i = 0; i < 2000; i++)
@@ -206,14 +205,12 @@ int main() //short argc, char **argv)
    //----------------------------------------
    // Turn off overdrive
    printf("\n/---------------------------------------------\n");
-   _asm ;johan 7 _endasm;
    printf("TEST%d: Turn off overdrive\n",testcnt++);
    printf("Set 1-Wire Net speed to normal %d\n",owSpeed(portnum,MODE_NORMAL));
 
    //----------------------------------------
    // Verify a device
    printf("\n/---------------------------------------------\n");
-   _asm ;johan 8 _endasm;
    printf("TEST%d: Verify the current device\n",testcnt++);
 
    printf("owVerify (normal) %d\n",owVerify(portnum,FALSE));
@@ -222,7 +219,6 @@ int main() //short argc, char **argv)
    //----------------------------------------
    // Skip the first family code found
    printf("\n/---------------------------------------------\n");
-   _asm ;johan 9 _endasm;
    printf("TEST%d: Skip the first family code found\n",testcnt++);
    
    // find the next device
@@ -244,7 +240,6 @@ int main() //short argc, char **argv)
    //----------------------------------------
    // Find first family code (DS1920) and read temperature
    printf("\n/---------------------------------------------\n");
-   _asm ;johan 10 _endasm;
    printf("TEST%d: Find first family code (DS1920) and read temperature\n",testcnt++);
 
    // find the next device
@@ -278,7 +273,6 @@ int main() //short argc, char **argv)
    //----------------------------------------
    //  Verify the current device, could also be alarming
    printf("\n/---------------------------------------------\n");
-   _asm ;johan 11 _endasm;
    printf("TEST%d: Verify the current device, could also be alarming\n",testcnt++);
 
    printf("owVerify (normal) %d\n",owVerify(portnum,FALSE));
@@ -287,7 +281,6 @@ int main() //short argc, char **argv)
    //----------------------------------------
    // Test setting the Serial Number with owSerialNum
    printf("\n/---------------------------------------------\n");
-   _asm ;johan 12 _endasm;
    printf("TEST%d: Test setting the Serial Number with owSerialNum\n",testcnt++);
 
    // set the Serial Num to 0 to 7
@@ -301,7 +294,6 @@ int main() //short argc, char **argv)
    //----------------------------------------
    //  Verify the current device (should fail, no such device)
    printf("\n/---------------------------------------------\n");
-   _asm ;johan 13 _endasm;
    printf("TEST%d: Verify the current device (should fail, no such device)\n",testcnt++);
 
    printf("owVerify (normal) %d\n",owVerify(portnum,FALSE));