2011年12月8日 星期四

MDI/MDI-X 與跳線

網卡的MDI/MDI-X介紹

MDI (X) - Medium Dependent Interface (Crossover)

Wiki
友旺
另一篇

----
在找要如何讓兩台電腦透過網路線直接互連時找到的相關資料...

另外,找到的資料裡也提到
較新的網卡(通常指GbE)已經有把MDI-X實做在硬體上
所以會自動偵測Tx/Rx,不需要再特地使用跳線

2011年12月2日 星期五

#pragma

#pragma 用法

C 語言中的編譯指示 (Pragma) 


#pragma 預處理指令 

----
#pragma message("......") 
=> compile時將訊息輸出

2011年10月5日 星期三

write-through vs. write-back (cache)

What are "write-through" and "write-back"?  (about cache)

Wiki
Benjr.tw

----
感覺像是N年前出現在恐龍本或白算盤裡面的內容... XD

2011年9月3日 星期六

EFI - handle and protocol

EFI的"handle"及"protocol",看了些資料還是沒什麼感覺...
在網路上找資料當做參考

http://blog.yam.com/wttmama/article/33757450
http://biosengineer.blogspot.com/2007/05/efi-protocol.html
http://matt.tlf.jp/2010/06/efi.html
http://blog.sina.com.cn/s/blog_77f624ae0100q38e.html 

----
看了大家的經驗,可能還是要自己寫過相關的code之後才會比較有感覺吧 @@

2011年8月29日 星期一

callback function & function pointer

callback function

http://squall.cs.ntou.edu.tw/cpp/94spring/lab03/Lab3-2.html

2011年8月24日 星期三

Vim -- "swap" file and "backup" file

使用Vim編輯時, 若不想讓它產生系統暫存檔 (swap file),
或是有更動後存檔時的備份檔 (backup file), 可用以下指令:

set nobackup
set nowritebackup
set noswapfile

但不建議如此做, 因為在發生不正常情況時就無法recover
如果只是為了讓工作目錄更乾淨, 可以更改swap file及backup file產生的目錄
指令如下

if has("win32") 

    set directory=c:\\tmp,c:\\temp 
    set backupdir=c:\\tmp,c:\\temp 
elseif has("unix") 
    set directory=/tmp 
    set backupdir=/tmp 

2011年8月12日 星期五

Vim -- 取消嗶聲

:set vb
(visual bell)

----
這個在DOS Vim應該很有用  XD
可是DOS Vim有vimrc檔可以用嗎?

[edit]
有耶, Vim文件有寫...


Recommended place for your personal initializations:
	MS-DOS and Win32    $HOME/_vimrc or $VIM/_vimrc

試過了,可用!!
讚!!

2011年8月8日 星期一

Vim的小技巧 (括號配對/消除^M/colorscheme)

筆記一下一些可能會用到的小技巧...

 1. 尋找配對的括號 => %

 2. 消除 ^M 符號 => :%s/^M//g
(^M 要用 ctrl-v ctrl-m 打出來)
或是 :%s/\r//g

 3. colorscheme => :colorscheme [scheme_name]

----
 太久沒用果然是會忘記的 @@

2011年7月30日 星期六

如何讓Vim支援ASL語法的syntax highlighting?

1. 找到ASL的Vim syntax檔,以檔名'asl.vim'存在Vim安裝目錄下的syntax資料夾中
來源<1> http://www.funa.org/~funa/diary/2001/12/11/asl.vim 
來源<2> http://www.vim.org/scripts/script.php?script_id=1648 

2. 修改 .vimrc ,加入以下內容
autocmd BufNew,BufRead *.asl setf asl

Done!!

2011年7月27日 星期三

int86() [C語言相關]

int86() function =>  Execute 8086 Software Interrupt
http://www.ousob.com/ng/turboc/ng2fc48.php

an example: 在DOS中列舉PCI device
http://hi.baidu.com/litomboy/blog/item/706291d6d0e5dc3906088bff.html

----
[edit 2011/09/08]
http://gd.tuwien.ac.at/languages/c/programming-bbrown/advcw1.htm


INT 1Ah
http://www.delorie.com/djgpp/doc/rbinter/ix/1A/B1.html

2011年7月25日 星期一

SVN簡介 / TortoiseSVN教學

網路上找的教學資料
感謝各位大大

TortoiseSVN使用簡介


TortoiseSVN 最佳 SVN Client 軟體


SVN 基本指令教學


Subversion 版本控制系統的基礎觀念

2011年3月29日 星期二

FFC

FFC : flat flexible cable 軟排線

2011年3月14日 星期一

Shadow RAM

shadow RAM

Shadow RAM Introduction

參考資料
Wiki
Shadow RAM basics (Microsoft)
Shadow RAM (hardware hell)

2011年3月1日 星期二

INT 13h

INT 13h  Disk I/O Services, Floppy and Hard Disks


INT 13H (Wiki)
擴展int13h調用詳解


參考資料

INT 13h (19)  Disk I/O Services, Floppy and Hard Disks 
BIOS interrupt call

INT 19h/18h

INT 19h  Bootstrap Loader Service
http://vitaly_filatov.tripod.com/ng/asm/asm_001.12.html

INT 18h  BASIC Loader Service
http://vitaly_filatov.tripod.com/ng/asm/asm_001.11.html

其他參考資料
int18和int19的区别
BIOS interrupt call
小華的部落格
Option ROM (Wiki)
BIOS boot specification

2011年2月17日 星期四

Hall sensor

Hall sensor, 或 Hall effect sensor (霍爾效應感測器)

參考資料
1. http://febon.blogspot.com/2009/09/hall-effect-sensor-switchnbnet-book.html
2. https://secure.wikimedia.org/wikipedia/zh/wiki/霍尔效应传感器

----
應用在NB上的 lid switch.

2011年1月2日 星期日

Option ROM (OpROM)

Option ROM

系統 BIOS 為了與硬體裝置進行通訊,所呼叫的韌體

參考資料
Wiki
小華的部落格

BBS => BIOS boot specification
下載

應該每天來讀一些BIOS的東西...

2011年1月1日 星期六

MRC

MRC => Memory Reference Code

找不太到說明的網頁,只有看到一小段

One of the most important aspects of the BIOS for an Intel board is the Memory Reference Code (MRC). 'The MRC is part of reference BIOS code, which relates to memory initialisation in the BIOS. It includes information about memory settings, frequency, timing, driving and detailed operations of the memory controller. The MRC is written in a C-language code, which can be edited and compiled by board makers. It provides a space to develop advanced features, and the ability to tune memory. '

來源

The life and times of the modern motherboard


還是直接問BIOS比較快啊  XD