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

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

?? hexedit.bas

?? 串口編程調試精靈
?? BAS
字號:
Attribute VB_Name = "Hexedit"



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

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

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




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

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

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



Public intHexWidth As Integer       '顯示列數


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

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

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




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

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



'**********************************
'輸入處理
'處理接收到的字節流,并保存在全局變量
'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
'總行數保存在
'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

'******************************************
'文本發生變化的刷新
'******************************************

Public Sub SlideRedisplay()
    
    Call GetDisplayText
    Call display

End Sub



?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99精品欧美一区二区蜜桃免费| 久久99在线观看| 久久久国产精品不卡| 91精选在线观看| 91精品一区二区三区久久久久久 | 亚洲精品视频在线看| 欧美激情一区二区三区蜜桃视频 | 不卡一区二区在线| 丰满少妇久久久久久久| 国产精品2024| 成人激情午夜影院| 色综合久久中文字幕| 日本道精品一区二区三区 | 97久久精品人人做人人爽| 成人a级免费电影| av在线播放成人| 日本精品免费观看高清观看| 欧美综合视频在线观看| 欧美日韩一区三区| 日韩一区二区在线免费观看| 日韩欧美色综合网站| 久久久精品国产99久久精品芒果| 久久久久九九视频| 国产精品久久久久久久午夜片| 亚洲免费资源在线播放| 亚洲国产精品综合小说图片区| 亚洲图片有声小说| 久久se这里有精品| 成人av午夜影院| 欧美性一级生活| 精品国产91亚洲一区二区三区婷婷| 久久综合精品国产一区二区三区| 欧美经典一区二区| 亚洲高清中文字幕| 国产在线播放一区| 在线观看国产一区二区| 日韩欧美中文字幕制服| 国产精品久久久久一区二区三区 | 色婷婷av一区二区三区软件| 欧美日韩情趣电影| 国产亚洲一区二区在线观看| 亚洲美女免费视频| 日韩电影在线一区二区三区| 国产精品影视网| 欧美三级电影一区| 中文av一区特黄| 免费看欧美女人艹b| 成人午夜又粗又硬又大| 欧美一区二区三区在线视频| 日韩一区日韩二区| 黑人精品欧美一区二区蜜桃| 91视频观看免费| 久久在线观看免费| 亚洲成人三级小说| 99久久综合狠狠综合久久| 日韩一区二区中文字幕| 亚洲主播在线观看| 99综合影院在线| www激情久久| 天天免费综合色| 91极品视觉盛宴| 日韩一区中文字幕| 成人一区在线看| 久久久久久久一区| 免费看精品久久片| 91精品国产一区二区三区蜜臀| 中文字幕中文字幕在线一区| 国产一区二区三区观看| 91精品国产免费久久综合| 一区二区三区四区国产精品| 成人久久18免费网站麻豆| 日韩一区二区三区电影在线观看| 亚洲午夜一二三区视频| 91丨porny丨国产入口| 国产精品久久久久久福利一牛影视| 蜜桃视频在线观看一区| 欧美一区二区播放| 日日嗨av一区二区三区四区| 欧美日韩视频在线第一区 | 日韩一区和二区| 亚洲图片自拍偷拍| 欧美日产在线观看| 亚洲成人1区2区| 欧美日韩国产成人在线免费| 婷婷亚洲久悠悠色悠在线播放| 欧美日韩国产美| 奇米影视一区二区三区| 精品成人私密视频| 国产酒店精品激情| 国产精品久久久久久久第一福利| 成人免费高清视频在线观看| 日韩理论片在线| 欧美视频在线观看一区二区| 亚洲成人先锋电影| 欧美成人精品1314www| 国产综合久久久久久久久久久久| 久久精品一二三| 99精品视频在线观看| 亚洲综合自拍偷拍| 欧美一区二区免费视频| 看片网站欧美日韩| 国产欧美日产一区| 在线视频你懂得一区| 日本亚洲一区二区| 国产欧美一区二区在线观看| 91一区二区三区在线播放| 日韩精品欧美成人高清一区二区| 精品国产精品一区二区夜夜嗨| 国产精品911| 亚洲第一福利一区| 国产欧美日韩在线看| 欧美日韩一区在线观看| 黑人精品欧美一区二区蜜桃| 亚洲天堂av一区| 日韩欧美成人一区| 粉嫩av亚洲一区二区图片| 亚洲一区二区四区蜜桃| 久久久精品综合| 欧美视频一区二区三区在线观看| 精久久久久久久久久久| 亚洲精品国产a久久久久久 | 国产传媒一区在线| 亚洲精品视频在线| 国产亚洲欧美日韩日本| 欧美午夜视频网站| 福利一区二区在线| 美女视频网站黄色亚洲| 一区二区三区四区乱视频| 久久久不卡网国产精品二区| 欧美日韩国产高清一区二区| 成人av影视在线观看| 久久国产成人午夜av影院| 亚洲国产中文字幕在线视频综合| 国产亚洲午夜高清国产拍精品| 在线成人高清不卡| 日本丶国产丶欧美色综合| 大尺度一区二区| 国产综合久久久久久鬼色| 午夜精品一区在线观看| 一色桃子久久精品亚洲| 久久精品免视看| 久久综合久久久久88| 日韩一级二级三级| 欧美日韩高清影院| 在线观看国产一区二区| av午夜一区麻豆| 国产精品99久| 国产不卡在线一区| 国产一区二区三区精品视频| 老司机精品视频线观看86| 青青草国产精品亚洲专区无| 亚洲成年人影院| 亚洲成a人片综合在线| 一区二区在线观看不卡| 亚洲欧美日韩久久精品| 亚洲欧美另类小说| 亚洲女子a中天字幕| 亚洲日本va在线观看| 亚洲三级久久久| 亚洲色图在线看| 亚洲精品国产高清久久伦理二区| 亚洲图片另类小说| 一区二区三区蜜桃| 亚洲一卡二卡三卡四卡五卡| 亚洲国产日韩a在线播放| 日韩精品电影在线| 极品瑜伽女神91| 国产精品综合二区| 成人福利视频在线| 在线观看日韩av先锋影音电影院| 欧美日韩综合色| 欧美一级理论性理论a| 精品国内二区三区| 欧美激情一区二区三区| 亚洲视频在线一区二区| 亚洲成国产人片在线观看| 麻豆精品一二三| 国产成人8x视频一区二区| 色婷婷综合五月| 欧美高清视频在线高清观看mv色露露十八 | 日韩三级伦理片妻子的秘密按摩| 日韩欧美国产电影| 中文一区一区三区高中清不卡| 亚洲欧美经典视频| 蜜桃精品在线观看| 成人午夜短视频| 欧美日韩激情一区二区| 精品精品欲导航| 国产精品色哟哟| 天天免费综合色| 国产超碰在线一区| 欧美日韩国产a| 久久久一区二区三区| 亚洲精品免费一二三区| 久久精品国产99国产| 色综合天天做天天爱| 日韩三级电影网址| 亚洲精品国产视频| 国产麻豆精品一区二区| 欧美日韩色综合|