亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? hexedit.bas

?? 串口編程調(diào)試精靈源代碼
?? BAS
字號:
Attribute VB_Name = "Hexedit"



'**********************************
'接收模塊
'**********************************

Public bytReceiveByte() As Byte     '接收到的字節(jié)
Public intReceiveLen As Integer     '接收到的字節(jié)數(shù)

'**********************************




'**********************************
'顯示模塊
'**********************************

Public strAddress As String     '地址信息
Public strHex As String         '十六進制編碼
Public strAscii As String        'ASCII碼

'**********************************



Public intHexWidth As Integer       '顯示列數(shù)


'**********************************

Public intOriginX As Long       '橫向原點(像素)
Public intOriginY As Integer    '縱向原點(行)
Public intLine As Integer       '總行數(shù)

'**********************************




'**********************************
'顯示常量
'**********************************

Public Const ChrWidth = 105             '單位寬度
Public Const ChrHeight = 2 * ChrWidth   '單位高度
Public Const BorderWidth = 210          '預(yù)留邊界
Public Const LineMax = 16               '最大顯示行數(shù)



'**********************************
'輸入處理
'處理接收到的字節(jié)流,并保存在全局變量
'bytReceiveRyte()
'**********************************



Public Sub InputManage(bytInput() As Byte, intInputLenth As Integer)

    

   
    Dim n As Integer                                '定義變量及初始化
    
    ReDim Preserve bytReceiveByte(intReceiveLen + intInputLenth)

    For n = 1 To intInputLenth Step 1
        bytReceiveByte(intReceiveLen + n - 1) = bytInput(n - 1)
    Next n
    
    intReceiveLen = intReceiveLen + intInputLenth
    
End Sub

'***********************************
'為輸出準備文本
'保存在全局變量
'strText
'strHex
'strAddress
'總行數(shù)保存在
'intLine
'***********************************

Public Sub GetDisplayText()

    Dim n As Integer
    Dim intValue As Integer
    Dim intHighHex As Integer
    Dim intLowHex As Integer
    Dim strSingleChr As String * 1
    
    Dim intAddress As Integer
    Dim intAddressArray(8) As Integer
    Dim intHighAddress As Integer
    
    
    
    strAscii = ""            '設(shè)置初值
    strHex = ""
    strAddress = ""
    
    '*****************************************
    '獲得16進制碼和ASCII碼的字符串
    '*****************************************
    
    
    
    For n = 1 To intReceiveLen
        intValue = bytReceiveByte(n - 1)
        
        If intValue < 32 Or intValue > 128 Then         '處理非法字符
            strSingleChr = Chr(46)                      '對于不能顯示的ASCII碼,
        Else                                            '用"."表示
            strSingleChr = Chr(intValue)
        End If
        
        strAscii = strAscii + strSingleChr
        
        intHighHex = intValue \ 16
        intLowHex = intValue - intHighHex * 16
        
        If intHighHex < 10 Then
            intHighHex = intHighHex + 48
        Else
            intHighHex = intHighHex + 55
        End If
        If intLowHex < 10 Then
            intLowHex = intLowHex + 48
        Else
            intLowHex = intLowHex + 55
        End If
        
        strHex = strHex + " " + Chr$(intHighHex) + Chr$(intLowHex) + " "
        
        If (n Mod intHexWidth) = 0 Then                 '設(shè)置換行
            strAscii = strAscii + Chr$(13) + Chr$(10)
            strHex = strHex + Chr$(13) + Chr$(10)
        Else
            
        End If
    Next n
    
    '******************************************
    
    
    '***************************************
    '獲得地址字符串
    '***************************************
    
    intLine = intReceiveLen \ intHexWidth
    
    If (intReceiveLen - intHexWidth * intLine) > 0 Then
    intLine = intLine + 1
    End If
    
    For n = 1 To intLine
        intAddress = (n - 1) * intHexWidth
        
        If intAdd48Chk = 1 Then
            intHighAddress = 8
        Else
            intHighAddress = 4
        End If
            intAddressArray(0) = intAddress
        For m = 1 To intHighAddress
            intAddressArray(m) = intAddressArray(m - 1) \ 16
        Next m
        For m = 1 To intHighAddress
            intAddressArray(m - 1) = intAddressArray(m - 1) - intAddressArray(m) * 16
        Next m
        For m = 1 To intHighAddress
        
            If intAddressArray(intHighAddress - m) < 10 Then
                intAddressArray(intHighAddress - m) = intAddressArray(intHighAddress - m) + Asc("0")
                
            Else
                intAddressArray(intHighAddress - m) = intAddressArray(intHighAddress - m) + Asc("A") - 10
                
            End If
            strAddress = strAddress + Chr$(intAddressArray(intHighAddress - m))
        Next m
        
        strAddress = strAddress + Chr$(13) + Chr$(10)       '設(shè)置換行
            
    Next n
    
    
    '***************************************
End Sub

'*************************************
'顯示輸出
'*************************************

Public Sub display()

    
    Dim intViewWidth As Long        '橫向?qū)挾?像素)
    Dim intViewLine As Integer      '縱向?qū)挾?行)

    Dim strDisplayAddress As String
    Dim strDisplayHex As String
    Dim strDisplayAscii As String
    
    strDisplayAddress = ""
    strDisplayHex = ""
    strDisplayAscii = ""
    
    Dim intStart As Integer
    Dim intLenth As Integer
    
    
    '***************************************
    '調(diào)整顯示頁面大小,設(shè)置滾動位置寬度
    '***************************************
   
    
    If intAdd48Chk = 1 Then
        frmMain.txtHexEditAddress.Width = 8 * ChrWidth + BorderWidth
    Else
        frmMain.txtHexEditAddress.Width = 4 * ChrWidth + BorderWidth
    End If
        
    frmMain.txtHexEditHex.Width = intHexWidth * 4 * ChrWidth + BorderWidth
    frmMain.txtHexEditText.Width = intHexWidth * ChrWidth + BorderWidth
    frmMain.txtBlank.Width = BorderWidth
    
    intViewWidth = frmMain.txtHexEditAddress.Width * intAddressChk + frmMain.txtHexEditHex.Width * intHexChk + frmMain.txtHexEditText.Width * intAsciiChk
    
    If intViewWidth <= frmMain.fraHexEditBackground.Width And intLine < LineMax Then
        frmMain.txtBlank.Width = frmMain.fraHexEditBackground.Width - intViewWidth
        frmMain.hsclHexEdit.Visible = False
        frmMain.vsclHexEdit.Visible = False
        intViewWidth = frmMain.fraHexEditBackground.Width
        intViewLine = intLine
        intOriginX = 0
        intOriginY = 0
        
    ElseIf intViewWidth > frmMain.fraHexEditBackground.Width And intLine < LineMax - 1 Then
        frmMain.hsclHexEdit.Visible = True
        frmMain.vsclHexEdit.Visible = False
        frmMain.hsclHexEdit.Width = frmMain.fraHexEditBackground.Width
        intViewLine = intLine
        intOriginY = 0
        If intOriginX > intViewWidth - frmMain.fraHexEditBackground.Width Then
            intOriginX = intViewWidth - frmMain.fraHexEditBackground.Width
        End If
        
    ElseIf intViewWidth < (frmMain.fraHexEditBackground.Width - frmMain.vsclHexEdit.Width) And intLine >= LineMax Then
        frmMain.vsclHexEdit.Visible = True
        frmMain.hsclHexEdit.Visible = False
        frmMain.txtBlank.Width = frmMain.fraHexEditBackground.Width - intViewWidth
        intViewWidth = frmMain.fraHexEditBackground.Width
        
        intViewLine = LineMax
        
        intOriginX = 0
        If intOriginY > intLine - LineMax Then
            intOriginY = intLine - LineMax
        End If
        
    Else
        frmMain.hsclHexEdit.Visible = True
        frmMain.vsclHexEdit.Visible = True
        frmMain.hsclHexEdit.Width = frmMain.fraHexEditBackground.Width - frmMain.vsclHexEdit.Width
        intViewLine = LineMax - 1
        If intOriginX > intViewWidth - frmMain.fraHexEditBackground.Width Then
            intOriginX = intViewWidth - frmMain.fraHexEditBackground.Width
        End If
        If intOriginY > intLine - LineMax + 1 Then
            intOriginY = intLine - LineMax + 1
        End If
    End If
    
    
    
    frmMain.txtHexEditAddress.Left = intOriginX
    frmMain.txtHexEditHex.Left = intOriginX + frmMain.txtHexEditAddress.Width * intAddressChk
    frmMain.txtHexEditText.Left = intOriginX + frmMain.txtHexEditAddress.Width * intAddressChk + frmMain.txtHexEditHex.Width * intHexChk
    frmMain.txtBlank.Left = intOriginX + frmMain.txtHexEditAddress.Width * intAddressChk + frmMain.txtHexEditHex.Width * intHexChk + frmMain.txtHexEditText.Width * intAsciiChk
    
    intStart = intOriginY * (6 + 4 * intAdd48Chk) + 1
    intLenth = intViewLine * (6 + 4 * intAdd48Chk)
    strDisplayAddress = Mid(strAddress, intStart, intLenth)
    
    intStart = intOriginY * (intHexWidth * 4 + 2) + 1
    intLenth = intViewLine * (intHexWidth * 4 + 2)
    strDisplayHex = Mid(strHex, intStart, intLenth)
    
    intStart = intOriginY * (intHexWidth + 2) + 1
    intLenth = intViewLine * (intHexWidth + 2)
    strDisplayAscii = Mid(strAscii, intStart, intLenth)
    
    
    
    '***************************************
    
    '***************************************
    '設(shè)置滾動條
    '***************************************
    
    frmMain.vsclHexEdit.Max = intLine - intViewLine
    frmMain.hsclHexEdit.Max = (intViewWidth - frmMain.fraHexEditBackground.Width) \ ChrWidth + 1
    
    
    '***************************************
    
    
    
    
    
    '***************************************
    '顯示輸出
    '***************************************
    frmMain.txtHexEditHex.Text = strDisplayHex
    frmMain.txtHexEditText.Text = strDisplayAscii
    frmMain.txtHexEditAddress.Text = strDisplayAddress
    
    '***************************************
    
    
End Sub

'******************************************
'文本無變化的刷新
'******************************************

Public Sub ScrollRedisplay()

    Call display
    
End Sub

'******************************************
'文本發(fā)生變化的刷新
'******************************************

Public Sub SlideRedisplay()
    
    Call GetDisplayText
    Call display

End Sub



?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品乱码妇女bbbb| 国产精品国产a| 97久久精品人人澡人人爽| 日韩一区精品字幕| 国产精品久久久久久久久果冻传媒| 欧美人妇做爰xxxⅹ性高电影 | 国产精品一二三| 亚洲线精品一区二区三区八戒| 欧美极品aⅴ影院| 欧美一区二区三区四区久久| 色综合久久综合网| 国产精品小仙女| 久99久精品视频免费观看| 亚洲午夜免费视频| 亚洲欧美一区二区不卡| 国产三级精品视频| 精品日韩一区二区三区| 4438成人网| 欧美视频一二三区| 91在线视频观看| 成人av资源网站| 国产91富婆露脸刺激对白| 久久国产视频网| 久久精品国产久精国产爱| 性做久久久久久免费观看| 亚洲自拍与偷拍| 亚洲码国产岛国毛片在线| 中文字幕在线观看一区二区| 国产精品麻豆一区二区| 国产欧美日韩视频在线观看| 久久丝袜美腿综合| 久久尤物电影视频在线观看| 精品日韩99亚洲| 精品国产99国产精品| 日韩美女一区二区三区| 日韩视频一区二区在线观看| 日韩一级大片在线观看| 欧美videos大乳护士334| 日韩精品一区二区三区蜜臀| 欧美变态口味重另类| 久久一区二区三区四区| 国产精品污污网站在线观看| 欧美国产1区2区| 日韩一区欧美一区| 亚洲一区在线观看免费 | 精品1区2区3区| 欧美这里有精品| 欧美日韩一区二区三区高清| 欧美日韩免费一区二区三区| 在线播放/欧美激情| 精品捆绑美女sm三区| 久久综合九色综合97婷婷| 国产无人区一区二区三区| 国产精品国产精品国产专区不片| 18成人在线观看| 亚洲国产成人av好男人在线观看| 亚洲成在人线免费| 老鸭窝一区二区久久精品| 国产九色sp调教91| 成人av在线播放网站| 91毛片在线观看| 欧美日韩国产综合一区二区| 日韩视频免费直播| 国产精品色在线| 一区二区三区久久久| 日本欧美加勒比视频| 国产成人午夜精品5599| 在线观看国产日韩| 欧美成人三级电影在线| 国产欧美日韩麻豆91| 一区二区三区中文字幕电影| 老汉av免费一区二区三区| 成人午夜激情片| 欧美影视一区在线| 精品av综合导航| 亚洲精品欧美专区| 久久精品国产99久久6| 成人高清免费观看| 4438x亚洲最大成人网| 欧美激情一区二区三区全黄| 一二三区精品福利视频| 狠狠色丁香久久婷婷综合_中| thepron国产精品| 在线不卡中文字幕| 国产精品色婷婷久久58| 五月婷婷久久丁香| 成人av影院在线| 欧美一区二区精美| 综合中文字幕亚洲| 看国产成人h片视频| gogogo免费视频观看亚洲一| 日韩欧美成人一区| 一区二区三区资源| 丁香激情综合国产| 欧美一个色资源| 亚洲精品免费在线播放| 国产一区在线视频| 欧美精品aⅴ在线视频| 国产精品天美传媒沈樵| 蜜臂av日日欢夜夜爽一区| 色综合天天综合网天天狠天天| 久久蜜桃一区二区| 美腿丝袜亚洲综合| 欧洲视频一区二区| 国产精品久久久久久久久果冻传媒| 美女一区二区三区| 欧美日韩亚洲综合| 国产精品盗摄一区二区三区| 精品无人码麻豆乱码1区2区| 欧美日韩第一区日日骚| 日韩美女视频一区| 成人手机在线视频| 久久人人爽爽爽人久久久| 男人的天堂久久精品| 欧美日韩在线电影| 一区二区在线观看免费| av在线不卡电影| 久久精品视频网| 九九热在线视频观看这里只有精品| 欧美日韩视频一区二区| 亚洲一区日韩精品中文字幕| 99久精品国产| 亚洲色图在线播放| 91蝌蚪porny成人天涯| 中文字幕日韩av资源站| 成人免费高清视频在线观看| 久久久久久99久久久精品网站| 久久精品国产一区二区| 日韩视频免费直播| 蜜乳av一区二区三区| 日韩欧美一级片| 六月婷婷色综合| wwwwww.欧美系列| 精品一区二区久久| 亚洲精品在线免费观看视频| 久久激情五月婷婷| 日韩欧美国产综合在线一区二区三区| 亚洲电影第三页| 91精品国产麻豆| 麻豆精品视频在线观看| 亚洲精品一区二区在线观看| 国产在线一区二区| 久久久久久久综合| 福利一区福利二区| 亚洲欧美日韩综合aⅴ视频| 91蜜桃免费观看视频| 亚洲va欧美va人人爽午夜| 日韩一区二区电影在线| 国产精品综合一区二区| 最新成人av在线| 欧美日韩精品一区视频| 九九精品一区二区| 国产精品理伦片| 欧美日韩一级视频| 久草这里只有精品视频| 欧美国产欧美综合| 91久久精品一区二区| 性做久久久久久免费观看| 亚洲精品一区二区三区香蕉| 成人深夜福利app| 亚洲精品欧美在线| 日韩欧美一级在线播放| 成人av高清在线| 亚洲一区二区三区四区中文字幕| 在线成人午夜影院| 国产不卡视频在线观看| 亚洲国产日韩精品| 久久婷婷成人综合色| 色av一区二区| 国内精品伊人久久久久av影院 | 欧美日韩国产美女| 国产一区二区在线观看免费| 自拍偷拍国产精品| 欧美一区二区三区系列电影| 成人av网站在线观看| 午夜精品成人在线| 国产香蕉久久精品综合网| 在线免费不卡视频| 国产一区二区三区在线观看免费| 亚洲欧美色综合| 久久色视频免费观看| 日本韩国欧美一区二区三区| 精品一区二区免费| 亚洲国产精品久久久久婷婷884 | 高清久久久久久| 日韩电影在线观看电影| 亚洲欧洲一区二区三区| 精品欧美久久久| 欧美中文字幕一区二区三区 | 色94色欧美sute亚洲线路一ni| 免费在线观看日韩欧美| 亚洲精品va在线观看| 2017欧美狠狠色| 欧美视频三区在线播放| 风间由美一区二区三区在线观看 | 色综合一区二区| 国产在线精品一区二区不卡了| 一区二区三区在线视频观看| 国产调教视频一区| 日韩情涩欧美日韩视频|