
Originally Posted by
CuriousOne
All that good, but does PBP uses them?
Yes it does.
You can vedrify this by yourself. Though a simple two variable multiplication in your editor and after compilation check the LST file. You will see that mulwf command is used just fine!
Ioannis
Code:
'****************************************************************
'* Name : UNTITLED.BAS *
'* Author : [select VIEW...EDITOR OPTIONS] *
'* Notice : Copyright (c) 2023 [select VIEW...EDITOR OPTIONS] *
'* : All Rights Reserved *
'* Date : 12/1/2023 *
'* Version : 1.0 *
'* Notes : *
'* : *
'****************************************************************
b1 var byte
b2 var byte
w3 var word
b1=123
b2=456
w3=b1*b2
end
and part of the LST file:
Code:
00001 ;******************************************************************
00002 ;* pbp_pic18FxxK40.LIB *
00003 ;* *
00004 ;* By : Leonard Zerman, Jeff Schmoyer, Darrel Taylor, *
00005 ;* Charles Leo *
00006 ;* Notice : Copyright (c) 2017 ME Labs, Inc. *
00007 ;* All Rights Reserved *
00008 ;* Date : 04/05/2017 *
00009 ;* Version : 3.1.0 *
00010 ;* Notes : Created for 18FxxK40 and similar devices *
00011 ;******************************************************************
00081 LIST
00082 ; Oscillator is 4MHz
01288 LIST
000000 01289 ORG RESET_ORG ; Reset vector at 0
01298 LIST
000000 EF23 F000 01299 goto INIT ; Finish initialization
08250 LIST
000004 5004 08251 MUL movf R1, W
000006 0208 08252 mulwf R3 ; R1 * R3 = PRODHL
000008 CFF3 F006 08253 movff PRODL, R2
00000C CFF4 F007 08254 movff PRODH, R2 + 1
Bookmarks