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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? hexedit.bas

?? vb串口通信調試,能夠進行16進制和字符的數(shù)據(jù)傳輸。
?? 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          '預留邊界
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 = ""            '設置初值
    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                 '設置換行
            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)       '設置換行
            
    Next n
    
    
    '***************************************
End Sub

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

Public Sub display()

    
    Dim intViewWidth As Long        '橫向寬度(像素)
    Dim intViewLine As Integer      '縱向寬度(行)

    Dim strDisplayAddress As String
    Dim strDisplayHex As String
    Dim strDisplayAscii As String
    
    strDisplayAddress = ""
    strDisplayHex = ""
    strDisplayAscii = ""
    
    Dim intStart As Integer
    Dim intLenth As Integer
    
    
    '***************************************
    '調整顯示頁面大小,設置滾動位置寬度
    '***************************************
   
    
    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)
    
    
    
    '***************************************
    
    '***************************************
    '設置滾動條
    '***************************************
    
    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



?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美视频你懂的| 亚洲三级视频在线观看| 成人欧美一区二区三区黑人麻豆| 亚洲第一福利视频在线| 国产成人在线电影| 欧美一区二区在线观看| 亚洲精品成人悠悠色影视| 国精产品一区一区三区mba视频| 欧美亚洲国产怡红院影院| 欧美激情一区二区三区在线| 蜜臀av性久久久久av蜜臀妖精| 欧美综合天天夜夜久久| 国产精品久久二区二区| 激情五月婷婷综合| 4438成人网| 日韩电影网1区2区| 欧美日韩一级二级| 亚洲国产成人va在线观看天堂| 成人av先锋影音| 国产日产欧美一区| 国产乱妇无码大片在线观看| 99精品热视频| 欧美日韩成人综合天天影院| 亚洲久草在线视频| a4yy欧美一区二区三区| 国产亚洲欧美激情| 国产一区二区毛片| 日韩一级二级三级精品视频| 天天爽夜夜爽夜夜爽精品视频| 在线观看成人免费视频| 一区二区三区电影在线播| 色激情天天射综合网| 亚洲色图视频免费播放| 91久久香蕉国产日韩欧美9色| 日韩理论在线观看| 91丨porny丨国产| 亚洲欧美日韩中文播放| 91小视频在线观看| 夜夜夜精品看看| 欧美日韩一区二区电影| 亚洲1区2区3区视频| 欧美精品日日鲁夜夜添| 免费高清成人在线| 久久精品欧美日韩| 成人免费va视频| 亚洲乱码国产乱码精品精小说| 91日韩在线专区| 亚洲一区二区免费视频| 欧美日韩亚洲不卡| 狠狠色狠狠色综合系列| 国产精品私房写真福利视频| 99久久99久久精品免费看蜜桃| 亚洲欧美福利一区二区| 欧美精品一卡两卡| 狠狠色丁香婷婷综合久久片| 国产亚洲一本大道中文在线| 99热精品一区二区| 视频一区二区国产| 欧美xxxxx裸体时装秀| 成人免费不卡视频| 日日夜夜精品视频天天综合网| 精品国免费一区二区三区| 成人福利视频网站| 亚洲一区在线视频| 精品国产乱码久久久久久蜜臀| 成人的网站免费观看| 亚洲二区在线视频| 日本一区二区久久| 欧美日韩国产天堂| 丁香婷婷综合色啪| 午夜精品久久久久久久久| 久久久亚洲欧洲日产国码αv| 91麻豆国产在线观看| 精品在线观看视频| 亚洲自拍与偷拍| 国产亚洲精品超碰| 91精品午夜视频| eeuss影院一区二区三区| 人妖欧美一区二区| 亚洲日本护士毛茸茸| 久久人人爽爽爽人久久久| 欧洲在线/亚洲| 粉嫩高潮美女一区二区三区| 日韩高清不卡一区二区三区| 日本一二三四高清不卡| 日韩免费电影一区| 精品视频免费在线| 99精品黄色片免费大全| 激情欧美一区二区| 免费看日韩a级影片| 亚洲精品国产品国语在线app| 久久看人人爽人人| 欧美xxxxxxxxx| 欧美日韩国产精品自在自线| 91在线小视频| 国产99精品在线观看| 久久国产精品色| 日本免费新一区视频| 亚洲无人区一区| 亚洲综合无码一区二区| 国产精品短视频| 亚洲国产激情av| 久久久久久久网| 精品国产青草久久久久福利| 宅男在线国产精品| 欧美日韩三级在线| 欧美性受xxxx黑人xyx性爽| 成人黄色在线网站| 成人精品鲁一区一区二区| 韩国三级中文字幕hd久久精品| 蜜臀av性久久久久蜜臀aⅴ流畅| 亚洲v日本v欧美v久久精品| 亚洲黄色av一区| 亚洲小说欧美激情另类| 一二三区精品视频| 亚洲国产一区视频| 午夜精品视频在线观看| 秋霞午夜av一区二区三区| 美脚の诱脚舐め脚责91 | 亚洲免费在线观看| 国产精品欧美极品| 国产精品久久久爽爽爽麻豆色哟哟| 欧美国产亚洲另类动漫| 亚洲欧洲av另类| 亚洲高清在线视频| 青青国产91久久久久久| 蜜芽一区二区三区| 国产一区二区三区高清播放| 国产成人自拍网| 91在线国产福利| 精品视频1区2区| 日韩精品一区二区三区swag | 国产精华液一区二区三区| 国模无码大尺度一区二区三区| 国产成人亚洲综合a∨婷婷图片| 国产成人三级在线观看| 91在线无精精品入口| 精品视频在线免费观看| 欧美精品一区男女天堂| 中文字幕中文字幕在线一区| 亚洲综合视频在线观看| 日韩成人免费电影| 国产成人在线免费| 在线观看国产一区二区| 精品少妇一区二区三区视频免付费| 欧美国产在线观看| 天涯成人国产亚洲精品一区av| 精品影视av免费| 在线免费不卡电影| 精品国产91乱码一区二区三区 | 在线看不卡av| 精品久久久三级丝袜| 中文字幕乱码一区二区免费| 亚洲综合久久av| 国产精品一二三四五| 在线观看网站黄不卡| 精品国产人成亚洲区| 亚洲精品高清在线观看| 韩国v欧美v亚洲v日本v| 欧美自拍丝袜亚洲| 国产三区在线成人av| 午夜不卡av免费| 9色porny自拍视频一区二区| 337p亚洲精品色噜噜狠狠| 欧美激情中文不卡| 久久国产尿小便嘘嘘尿| 欧美性欧美巨大黑白大战| 国产女人水真多18毛片18精品视频| 午夜一区二区三区在线观看| 丁香婷婷综合网| 欧美www视频| 午夜成人在线视频| 99久久婷婷国产综合精品 | 国产成人激情av| 91精品婷婷国产综合久久性色| 国产精品福利在线播放| 国产原创一区二区| 欧美一区二区美女| 亚洲电影一区二区三区| 99久久精品免费| 国产精品入口麻豆九色| 国模娜娜一区二区三区| 日韩欧美国产一区在线观看| 亚洲电影一区二区三区| 91黄视频在线| 综合久久久久综合| 91玉足脚交白嫩脚丫在线播放| 国产视频一区在线播放| 国产美女精品在线| 精品国产乱码久久久久久1区2区 | 欧洲精品一区二区三区在线观看| 久久久久久久久99精品| 久久99精品久久久| 日韩欧美一级精品久久| 人人精品人人爱| 精品国内片67194| 国产综合久久久久久鬼色| 久久综合狠狠综合久久综合88| 青青国产91久久久久久| 欧美大肚乱孕交hd孕妇|